pub trait PossiblyOption<T>: SealedPossiblyOption<T> {
// Required method
fn to_option(self) -> Option<T>;
}Expand description
A trait implemented by T and Option<T>.
pub trait PossiblyOption<T>: SealedPossiblyOption<T> {
// Required method
fn to_option(self) -> Option<T>;
}A trait implemented by T and Option<T>.