Trait TryAsRef

Source
pub trait TryAsRef<T: ?Sized> {
    // Required method
    fn try_as_ref(&self) -> Option<&T>;
}
Expand description

Interface to try to perform a cheap reference-to-reference conversion.

Required Methods§

Source

fn try_as_ref(&self) -> Option<&T>

Implementations on Foreign Types§

Source§

impl<T> TryAsRef<Utf8Path<T>> for OsStr
where T: Utf8Encoding,

Source§

impl<T> TryAsRef<Utf8Path<T>> for OsString
where T: Utf8Encoding,

Implementors§