[][src]Struct structural::convert::TryFromError

pub struct TryFromError<T, E> {
    pub from: T,
    pub error: E,
}

The error type returned by TryFromStructural and TryIntoStructural.

Fields

from: T

The paramter of TryFromStructural::try_from_structural (or self in TryIntoStructural::try_into_structural) that failed to be conevrted.

error: E

The TryFromStructural::Error associated type.

Implementations

impl<T, E> TryFromError<T, E>[src]

pub fn new(from: T, error: E) -> Self[src]

Constructs this error.

impl<T> TryFromError<T, EmptyTryFromError>[src]

pub fn with_empty_error(from: T) -> Self[src]

Constructs this error,with EmptyTryFromError as the error.

Trait Implementations

impl<T: Clone, E: Clone> Clone for TryFromError<T, E>[src]

impl<T: Debug, E: Debug> Debug for TryFromError<T, E>[src]

impl<T, E> Display for TryFromError<T, E> where
    E: Display
[src]

impl<T, E> Error for TryFromError<T, E> where
    T: Debug,
    E: StdError
[src]

impl<T: PartialEq, E: PartialEq> PartialEq<TryFromError<T, E>> for TryFromError<T, E>[src]

impl<T, E> StructuralPartialEq for TryFromError<T, E>[src]

Auto Trait Implementations

impl<T, E> RefUnwindSafe for TryFromError<T, E> where
    E: RefUnwindSafe,
    T: RefUnwindSafe

impl<T, E> Send for TryFromError<T, E> where
    E: Send,
    T: Send

impl<T, E> Sync for TryFromError<T, E> where
    E: Sync,
    T: Sync

impl<T, E> Unpin for TryFromError<T, E> where
    E: Unpin,
    T: Unpin

impl<T, E> UnwindSafe for TryFromError<T, E> where
    E: UnwindSafe,
    T: UnwindSafe

Blanket Implementations

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

impl<This, T> Array0<T> for This where
    This: ?Sized
[src]

impl<This, V, T> Array0Variant<T, V> for This where
    This: ?Sized
[src]

impl<This, T> ArrayMove0<T> for This where
    This: ?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<This, T> IntoStructural<T> for This where
    T: FromStructural<This>, 
[src]

impl<T> SelfOps for T where
    T: ?Sized
[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.

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

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

The error type returned when the conversion fails.

impl<This, T> TryIntoStructural<T> for This where
    T: TryFromStructural<This>, 
[src]

type Error = <T as TryFromStructural<This>>::Error

The error parameter of TryFromError, returned from try_into_structural on conversion error. Read more

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

type Type = T

The same type as Self. Read more