pub trait TryAsRef<T: ?Sized> { type Error; // Required method fn try_as_ref(&self) -> Result<&T, Self::Error>; }