Trait freya::prelude::ReadableResultExt
pub trait ReadableResultExt<T, E>: Readable<Target = Result<T, E>>where
T: 'static,
E: 'static,{
// Provided methods
fn unwrap(&self) -> T
where T: Clone { ... }
fn as_ref(
&self
) -> Result<<Self::Storage as AnyStorage>::Ref<'_, T>, <Self::Storage as AnyStorage>::Ref<'_, E>> { ... }
}
Expand description
An extension trait for Readable<Option
Provided Methods§
fn as_ref(
&self
) -> Result<<Self::Storage as AnyStorage>::Ref<'_, T>, <Self::Storage as AnyStorage>::Ref<'_, E>>
fn as_ref( &self ) -> Result<<Self::Storage as AnyStorage>::Ref<'_, T>, <Self::Storage as AnyStorage>::Ref<'_, E>>
Attempts to read the inner value of the Option.
Object Safety§
This trait is not object safe.