Struct widestring::MissingNulError [−][src]
pub struct MissingNulError<C>(_);
An error returned from UCString
and UCStr
to indicate that a terminating nul value
was missing.
The error optionally returns the ownership of the invalid vector whenever a vector was owned.
Methods
impl<C: UChar> MissingNulError<C>
[src]
impl<C: UChar> MissingNulError<C>
pub fn into_vec(self) -> Option<Vec<C>>
[src]
pub fn into_vec(self) -> Option<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> Debug for MissingNulError<C>
[src]
impl<C: Debug> Debug for MissingNulError<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> Clone for MissingNulError<C>
[src]
impl<C: Clone> Clone for MissingNulError<C>
fn clone(&self) -> MissingNulError<C>
[src]
fn clone(&self) -> MissingNulError<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> PartialEq for MissingNulError<C>
[src]
impl<C: PartialEq> PartialEq for MissingNulError<C>
fn eq(&self, other: &MissingNulError<C>) -> bool
[src]
fn eq(&self, other: &MissingNulError<C>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &MissingNulError<C>) -> bool
[src]
fn ne(&self, other: &MissingNulError<C>) -> bool
This method tests for !=
.
impl<C: Eq> Eq for MissingNulError<C>
[src]
impl<C: Eq> Eq for MissingNulError<C>
impl<C: UChar> Display for MissingNulError<C>
[src]
impl<C: UChar> Display for MissingNulError<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 MissingNulError<C>
[src]
impl<C: UChar> Error for MissingNulError<C>
Auto Trait Implementations
impl<C> Send for MissingNulError<C> where
C: Send,
impl<C> Send for MissingNulError<C> where
C: Send,
impl<C> Sync for MissingNulError<C> where
C: Sync,
impl<C> Sync for MissingNulError<C> where
C: Sync,