pub enum ExtendError {
Capacity(CapacityError),
InteriorNul {
position: usize,
},
}
Expand description
An error to extend CString
with bytes.
Variants§
Capacity(CapacityError)
The capacity of the CString
is too small.
InteriorNul
An invalid interior nul byte found in a given byte slice.
Trait Implementations§
Source§impl Debug for ExtendError
impl Debug for ExtendError
Source§impl Display for ExtendError
impl Display for ExtendError
Source§impl Error for ExtendError
impl Error for ExtendError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<CapacityError> for ExtendError
impl From<CapacityError> for ExtendError
Source§fn from(error: CapacityError) -> Self
fn from(error: CapacityError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ExtendError
impl RefUnwindSafe for ExtendError
impl Send for ExtendError
impl Sync for ExtendError
impl Unpin for ExtendError
impl UnwindSafe for ExtendError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more