Trait core_extensions::try_from::TryFrom[][src]

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

Attempts to convert from T to Self,returning Err(Self::Error) on failure.

Associated Types

The error type returned when the conversion fails.

Required Methods

Performs the conversion

Implementors