AssertInto

Trait AssertInto 

Source
pub trait AssertInto<T>: Sized {
    // Required method
    fn assert_into(self) -> T;
}

Required Methods§

Source

fn assert_into(self) -> T

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> AssertInto<U> for T
where U: TryFrom<T>, T: Debug + Copy, <U as TryFrom<T>>::Error: Debug,