pub trait OptionFrom<T>where
    Self: Sized,{
    // Required method
    fn option_from(other: T) -> Option<Self>;
}
Expand description

Similar to From / TryFrom, but returns an option.

Required Methods§

source

fn option_from(other: T) -> Option<Self>

Object Safety§

This trait is not object safe.

Implementors§