ExTryInto

Trait ExTryInto 

Source
pub trait ExTryInto<T>: Sized {
    type ExternalTraitSpecificationFor: TryInto<T>;
    type Error;

    // Required methods
    spec fn obeys_try_into_spec() -> bool;
    spec fn try_into_spec(self) -> Result<T, Self::Error>;
    exec fn try_into(self) -> ret : Result<T, Self::Error>;
}

Required Associated Types§

Required Methods§

Source

spec fn obeys_try_into_spec() -> bool

Source

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

Source

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

ensures
Self::obeys_try_into_spec() ==> ret == Self::try_into_spec(self),

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§