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.
Fields
§
position: usizeA position of a nul byte.
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§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§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.