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]

Returns the position of the nul value in the slice that was provided to U16CString.

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]

Formats the value using the given formatter. Read more

impl<C: Clone + UChar> Clone for NulError<C>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<C: PartialEq + UChar> PartialEq for NulError<C>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<C: Eq + UChar> Eq for NulError<C>
[src]

impl<C: UChar> Into<Vec<C>> for NulError<C>
[src]

Performs the conversion.

impl<C: UChar> Display for NulError<C>
[src]

Formats the value using the given formatter. Read more

impl<C: UChar> Error for NulError<C>
[src]

This method is soft-deprecated. Read more

The lower-level cause of this error, if any. Read more

Auto Trait Implementations

impl<C> Send for NulError<C> where
    C: Send

impl<C> Sync for NulError<C> where
    C: Sync