IntoOptional

Trait IntoOptional 

Source
pub trait IntoOptional<T> {
    // Required method
    fn into_optional(self) -> Option<T>;
}

Required Methods§

Implementations on Foreign Types§

Source§

impl IntoOptional<String> for &str

Source§

impl IntoOptional<String> for Option<&str>

Source§

impl<T> IntoOptional<T> for Option<T>

Source§

impl<T: Clone> IntoOptional<T> for Option<&T>

Source§

impl<T: Clone> IntoOptional<T> for &T

Implementors§

Source§

impl<T> IntoOptional<T> for T