pub trait IntoOption<T> {
// Required method
fn into_option(self) -> Option<T>;
}Expand description
Convenient trait to convert to Option<T>.
IntoOption<T> for F is automatically implemented
if TryInto<T> for F is implemented.
pub trait IntoOption<T> {
// Required method
fn into_option(self) -> Option<T>;
}Convenient trait to convert to Option<T>.
IntoOption<T> for F is automatically implemented
if TryInto<T> for F is implemented.