Struct c_string::NulError
[−]
[src]
pub struct NulError { /* fields omitted */ }
Error information about a failed string conversion due to an interior NUL in the source data.
Methods
impl NulError
[src]
fn nul_position(&self) -> usize
[src]
Returns the position of the first NUL byte in the byte sequence that
was attempted to convert to CStrBuf
.
fn into_bytes(self) -> Vec<u8>
[src]
Consumes this error and returns the bytes that were attempted to make a C string with.
Trait Implementations
impl Error for NulError
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
The lower-level cause of this error, if any. Read more
impl Display for NulError
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more