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
sourceimpl Clone for CStrConvertError
impl Clone for CStrConvertError
sourcefn clone(&self) -> CStrConvertError
fn clone(&self) -> CStrConvertError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for CStrConvertError
impl Debug for CStrConvertError
sourceimpl From<CStrConvertError> for Error
impl From<CStrConvertError> for Error
sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more