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.
pub trait TryAsRef<T: ?Sized> {
// Required method
fn try_as_ref(&self) -> Option<&T>;
}
Interface to try to perform a cheap reference-to-reference conversion.