TryInto2

Trait TryInto2 

Source
pub trait TryInto2<T>: Sized {
    type Error;

    // Required method
    fn try_into2(self) -> Result<T, Self::Error>;
}

Required Associated Types§

Required Methods§

Source

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T, U> TryInto2<U> for T
where U: TryFrom2<T>,

Source§

type Error = <U as TryFrom2<T>>::Error