Trait tailsome::IntoOption

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

Provides into_some. Implemented for all Sized types.

Required Methods§

source

fn into_some(self) -> Option<Self>

Consumes self and returns it wrapped in Some.

Implementors§

source§

impl<T: Sized> IntoOption for T