[][src]Trait core_extensions::try_from::TryInto

pub trait TryInto<T>: Sized {
    type Error;
    fn try_into(self) -> Result<T, Self::Error>;

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

Associated Types

type Error

The error type returned when the conversion fails.

Loading content...

Required methods

fn try_into(self) -> Result<T, Self::Error>

Performs the conversion

Loading content...


impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = U::Error

Loading content...