pub trait TryToOptional<T, E> {
    // Required method
    fn optional(self) -> Result<Option<T>, E>
       where Self: Sized;
}

Required Methods§

source

fn optional(self) -> Result<Option<T>, E>
where Self: Sized,

Implementors§