pub enum FromBytesWithNulValidError {
HasNull {
idx: usize,
},
MissingNull,
}Expand description
Error encountered while creating a CStr from an AlwaysValid encoding.
Variants§
HasNull
The input contains a null byte not in the final position
MissingNull
The input doesn’t contain any null bytes
Trait Implementations§
Source§impl Debug for FromBytesWithNulValidError
impl Debug for FromBytesWithNulValidError
Source§impl Display for FromBytesWithNulValidError
impl Display for FromBytesWithNulValidError
Source§impl Error for FromBytesWithNulValidError
impl Error for FromBytesWithNulValidError
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()
impl StructuralPartialEq for FromBytesWithNulValidError
Auto Trait Implementations§
impl Freeze for FromBytesWithNulValidError
impl RefUnwindSafe for FromBytesWithNulValidError
impl Send for FromBytesWithNulValidError
impl Sync for FromBytesWithNulValidError
impl Unpin for FromBytesWithNulValidError
impl UnwindSafe for FromBytesWithNulValidError
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