Struct cstr_argument::NulError
[−]
[src]
pub struct NulError<T> { /* fields omitted */ }
An error returned from CStrArgument::try_into_cstr
to indicate that a null byte
was found before the last byte in the string.
Methods
impl<T> NulError<T>
[src]
pub fn nul_position(&self) -> usize
[src]
Returns the position of the null byte in the string.
pub fn into_inner(self) -> T
[src]
Returns the original string.
Trait Implementations
impl<T: Debug> Debug for NulError<T>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<T: Copy> Copy for NulError<T>
[src]
impl<T: Clone> Clone for NulError<T>
[src]
fn clone(&self) -> NulError<T>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T: Eq> Eq for NulError<T>
[src]
impl<T: PartialEq> PartialEq for NulError<T>
[src]
fn eq(&self, __arg_0: &NulError<T>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &NulError<T>) -> bool
[src]
This method tests for !=
.
impl<T> Display for NulError<T>
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more