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

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

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

Associated Types

type Error[src]

The error type returned when the conversion fails.

Loading content...

Required methods

pub fn try_from(value: T) -> Result<Self, Self::Error>[src]

Performs the conversion

Loading content...

Implementors

Loading content...