Struct widestring::NulError
[−]
[src]
pub struct NulError(_, _);
An error returned from WideCString
to indicate that an invalid nul value was found.
The error indicates the position in the vector where the nul value was found, as well as returning the ownership of the invalid vector.
Methods
impl NulError
[src]
fn nul_position(&self) -> usize
Returns the position of the nul value in the slice that was provided to WideCString
.
fn into_vec(self) -> Vec<u16>
Consumes this error, returning the underlying vector of u16 values which generated the error in the first place.
Trait Implementations
impl Eq for NulError
[src]
impl PartialEq for NulError
[src]
fn eq(&self, __arg_0: &NulError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &NulError) -> bool
This method tests for !=
.
impl Clone for NulError
[src]
fn clone(&self) -> NulError
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more