pub trait IntoOption: Sized {
    fn into_some(self) -> Option<Self>;
}
Expand description

Provides into_some. Implemented for all Sized types.

Required methods

Consumes self and returns it wrapped in Some.

Implementors