Trait ToOption

Source
pub(crate) trait ToOption<T> {
    // Required method
    fn to_option(self) -> Option<T>;
}

Required Methods§

Source

fn to_option(self) -> Option<T>

Implementations on Foreign Types§

Source§

impl ToOption<String> for Option<i32>

Source§

impl ToOption<String> for u16

Source§

impl<'a> ToOption<&'a str> for &'a String

Source§

fn to_option(self) -> Option<&'a str>

Implementors§