Enum kernel::str::CStrConvertError
source · pub enum CStrConvertError {
InteriorNul,
NotNulTerminated,
}
Expand description
Possible errors when using conversion functions in CStr
.
Variants§
InteriorNul
Supplied bytes contain an interior NUL
.
NotNulTerminated
Supplied bytes are not terminated by NUL
.
Trait Implementations§
source§impl Clone for CStrConvertError
impl Clone for CStrConvertError
source§fn clone(&self) -> CStrConvertError
fn clone(&self) -> CStrConvertError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CStrConvertError
impl Debug for CStrConvertError
source§impl From<CStrConvertError> for Error
impl From<CStrConvertError> for Error
source§fn from(_: CStrConvertError) -> Error
fn from(_: CStrConvertError) -> Error
Converts to this type from the input type.
impl Copy for CStrConvertError
Auto Trait Implementations§
impl RefUnwindSafe for CStrConvertError
impl Send for CStrConvertError
impl Sync for CStrConvertError
impl Unpin for CStrConvertError
impl UnwindSafe for CStrConvertError
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