TryIntoSpec

Trait TryIntoSpec 

Source
pub trait TryIntoSpec<T>: Sized + TryInto<T> {
    // Required methods
    spec fn obeys_try_into_spec() -> bool;
    spec fn try_into_spec(self) -> Result<T, Self::Error>;
}

Required Methods§

Source

spec fn obeys_try_into_spec() -> bool

Source

spec fn try_into_spec(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, VERUS_SPEC__A: TryInto<T> + Sized> TryIntoSpec<T> for VERUS_SPEC__A