Trait core::convert::TryFrom1.26.0[][src]

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

Attempt to construct Self via a conversion.

Associated Types

The type returned in the event of a conversion error.

Required Methods

Performs the conversion.

Implementors