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

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

type Error

The error type returned when the conversion fails.

Loading content...

Required methods

fn try_from(value: T) -> Result<Self, Self::Error>

Performs the conversion

Loading content...

Implementors

Loading content...