Trait table::util::convert::TryAsRef[][src]

pub trait TryAsRef<T> where
    T: ?Sized
{ fn try_as_ref(&self) -> Option<&T>; }

An analogue of AsRef that allows failure, useful when the inner referenced value isn't present due to an enum mismatch.

Required Methods

Attempt to unwrap the inner reference.

Implementors