Enum FromBytesWithNulError
enum FromBytesWithNulError
An error indicating that a nul byte was not in the expected position.
The slice used to create a CStr must have one and only one nul byte,
positioned at the end.
This error is created by the CStr::from_bytes_with_nul method.
See its documentation for more.
Examples
use ;
let _: FromBytesWithNulError = from_bytes_with_nul.unwrap_err;
Variants
-
InteriorNul { position: usize } Data provided contains an interior nul byte at byte
position.-
NotNulTerminated Data provided is not nul terminated.
Implementations
impl Clone for FromBytesWithNulError
fn clone(self: &Self) -> FromBytesWithNulError
impl Copy for FromBytesWithNulError
impl Debug for FromBytesWithNulError
fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result
impl Display for FromBytesWithNulError
fn fmt(self: &Self, f: &mut fmt::Formatter<'_>) -> fmt::Result
impl Eq for FromBytesWithNulError
impl Error for FromBytesWithNulError
impl Freeze for FromBytesWithNulError
impl PartialEq for FromBytesWithNulError
fn eq(self: &Self, other: &FromBytesWithNulError) -> bool
impl RefUnwindSafe for FromBytesWithNulError
impl Send for FromBytesWithNulError
impl StructuralPartialEq for FromBytesWithNulError
impl Sync for FromBytesWithNulError
impl Unpin for FromBytesWithNulError
impl UnwindSafe for FromBytesWithNulError
impl<T> Any for FromBytesWithNulError
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for FromBytesWithNulError
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for FromBytesWithNulError
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for FromBytesWithNulError
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> From for FromBytesWithNulError
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into for FromBytesWithNulError
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for FromBytesWithNulError
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for FromBytesWithNulError
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>