pub trait MaybeTryInto<T>: Sized {
type Error;
// Required method
fn maybe_try_into(self) -> NullableResult<T, Self::Error>;
}
Expand description
Analogue of TryInto that returns a NullableResult
Required Associated Types§
Required Methods§
Sourcefn maybe_try_into(self) -> NullableResult<T, Self::Error>
fn maybe_try_into(self) -> NullableResult<T, Self::Error>
Convert a Self
to NullableResult<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.