pub enum NulError {
InteriorNul(usize),
NotNulTerminated,
}
Expand description
An error indicating that a string is not correctly NUL-terminated.
Variants§
InteriorNul(usize)
The string contained an interior NUL at this position.
NotNulTerminated
The string did not have a NUL as its last character.
Trait Implementations§
impl Eq for NulError
impl StructuralPartialEq for NulError
Auto Trait Implementations§
impl Freeze for NulError
impl RefUnwindSafe for NulError
impl Send for NulError
impl Sync for NulError
impl Unpin for NulError
impl UnwindSafe for NulError
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