[][src]Struct abin::AnyStrUtf8Error

pub struct AnyStrUtf8Error<TBin> { /* fields omitted */ }

Error returned when trying to create a AnyStr from a binary that contains invalid utf-8.

Implementations

impl<TBin> AnyStrUtf8Error<TBin>[src]

pub fn new(utf8_error: Utf8Error, binary: TBin) -> Self[src]

pub fn utf8_error(&self) -> &Utf8Error[src]

pub fn deconstruct(self) -> (Utf8Error, TBin)[src]

This can be used to retrieve the binary that has been used to construct the string.

Trait Implementations

impl<TBin: Clone> Clone for AnyStrUtf8Error<TBin>[src]

impl<TBin: Debug> Debug for AnyStrUtf8Error<TBin>[src]

impl<TBin> Display for AnyStrUtf8Error<TBin> where
    TBin: AnyBin
[src]

impl<TBin> Error for AnyStrUtf8Error<TBin> where
    TBin: AnyBin
[src]

Auto Trait Implementations

impl<TBin> RefUnwindSafe for AnyStrUtf8Error<TBin> where
    TBin: RefUnwindSafe

impl<TBin> Send for AnyStrUtf8Error<TBin> where
    TBin: Send

impl<TBin> Sync for AnyStrUtf8Error<TBin> where
    TBin: Sync

impl<TBin> Unpin for AnyStrUtf8Error<TBin> where
    TBin: Unpin

impl<TBin> UnwindSafe for AnyStrUtf8Error<TBin> where
    TBin: 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.