Function request_ref
pub fn request_ref<'a, T>(err: &'a impl Error + ?Sized) -> Option<&'a T>
where
T: 'static + ?Sized,
Requests a reference of type T from the given impl Error.
Examples
Get a string reference from an error.
use Error;
use request_ref;