pub struct NulError(/* private fields */);Expand description
Implementations§
Source§impl NulError
impl NulError
1.0.0 · Sourcepub fn nul_position(&self) -> usize
pub fn nul_position(&self) -> usize
Returns the position of the nul byte in the slice that caused
CString::new to fail.
§Examples
Trait Implementations§
impl Eq for NulError
1.0.0 · Source§impl Error for NulError
impl Error for NulError
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 NulError
Auto Trait Implementations§
impl Forget for NulError
impl Freeze for NulError
impl Move for NulError
impl RefUnwindSafe for NulError
impl Send for NulErrorwhere
RawVecInner: Send,
impl Sync for NulErrorwhere
RawVecInner: Sync,
impl Unpin for NulError
impl UnsafeUnpin for NulError
impl UnwindSafe for NulErrorwhere
RawVecInner: UnwindSafe,
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