[][src]Struct widestring::NulError

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.

Implementations

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

pub fn nul_position(&self) -> usize[src]

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

pub fn into_vec(self) -> Vec<C>[src]

Consumes this error, returning the underlying vector of u16 values which generated the error in the first place.

Trait Implementations

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

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

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

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

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

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

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

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

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

Auto Trait Implementations

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

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

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

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

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.