Trait ConvertibleToRef

Source
pub trait ConvertibleToRef<Output> {
    // Required method
    fn try_as_ref(&self) -> Option<&Output>;
}

Required Methods§

Implementors§

Source§

impl<T, U> ConvertibleToRef<U> for T
where for<'a> &'a U: TryFrom<&'a T>,