pub trait ToMaybe<T> {
// Required method
fn to_maybe(self) -> Maybe<T>;
}Expand description
Temporary trait to allow conversions from the old Option<T> mechanism to Maybe<T>.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".