Trait rustiful::TryFrom [] [src]

pub trait TryFrom<T>: Sized {
    type Error;
    fn try_from(_: T) -> Result<Self, Self::Error>;
}

TryFrom trait; the trait is currently experimental in Rust, so use a custom implementation for now.

Associated Types

The type returned in the event of a conversion error.

Required Methods

Performs the conversion.

Implementors