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§
type ExternalTraitSpecificationFor: TryInto<T>
type Error
Required Methods§
Sourcespec fn obeys_try_into_spec() -> bool
spec fn obeys_try_into_spec() -> bool
Sourcespec fn try_into_spec(self) -> Result<T, Self::Error>
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.