An error indicating that an interior nul byte was found.
While Rust strings may contain nul bytes in the middle, C strings can't, as that byte would effectively truncate the string.
pub fn nul_position(&self) -> usize[src]
Returns the position of the nul byte in the slice that caused
CString::new to fail.
Consumes this error, returning the underlying vector of bytes which generated the error in the first place.
fn description(&self) -> &str[src]
impl StructuralEq for NulError[src]
impl StructuralPartialEq for NulError[src]
Auto Trait Implementations
impl RefUnwindSafe for NulError
impl UnwindSafe for NulError
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)[src]
type Error = Infallible
The type returned in the event of a conversion error.