pub struct NulError(/* private fields */);
🔬This is a nightly-only experimental API. (
c_str_module
#112134)Expand description
Implementations§
Source§impl NulError
impl NulError
Sourcepub fn nul_position(&self) -> usize
🔬This is a nightly-only experimental API. (c_str_module
#112134)
pub fn nul_position(&self) -> usize
c_str_module
#112134)Returns the position of the nul byte in the slice that caused
CString::new
to fail.
§Examples
Trait Implementations§
1.0.0 · Source§impl Error for NulError
impl Error for NulError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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
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