Struct widestring::NulError [−][src]
pub struct NulError<C: UChar>(_, _);
An error returned from UCString
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<C: UChar> NulError<C>
[src]
impl<C: UChar> NulError<C>
pub fn nul_position(&self) -> usize
[src]
pub fn nul_position(&self) -> usize
Returns the position of the nul value in the slice that was provided to U16CString
.
pub fn into_vec(self) -> Vec<C>
[src]
pub fn into_vec(self) -> Vec<C>
Consumes this error, returning the underlying vector of u16 values which generated the error in the first place.
Trait Implementations
impl<C: Debug + UChar> Debug for NulError<C>
[src]
impl<C: Debug + UChar> Debug for NulError<C>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<C: Clone + UChar> Clone for NulError<C>
[src]
impl<C: Clone + UChar> Clone for NulError<C>
fn clone(&self) -> NulError<C>
[src]
fn clone(&self) -> NulError<C>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<C: PartialEq + UChar> PartialEq for NulError<C>
[src]
impl<C: PartialEq + UChar> PartialEq for NulError<C>
fn eq(&self, other: &NulError<C>) -> bool
[src]
fn eq(&self, other: &NulError<C>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &NulError<C>) -> bool
[src]
fn ne(&self, other: &NulError<C>) -> bool
This method tests for !=
.
impl<C: Eq + UChar> Eq for NulError<C>
[src]
impl<C: Eq + UChar> Eq for NulError<C>
impl<C: UChar> Into<Vec<C>> for NulError<C>
[src]
impl<C: UChar> Into<Vec<C>> for NulError<C>
impl<C: UChar> Display for NulError<C>
[src]
impl<C: UChar> Display for NulError<C>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<C: UChar> Error for NulError<C>
[src]
impl<C: UChar> Error for NulError<C>