pub trait ReadableOptionExt<T>: Readable<Target = Option<T>> {
// Provided methods
fn unwrap(&self) -> T
where T: Clone + 'static { ... }
fn as_ref(&self) -> Option<ReadableRef<'_, Self, T>>
where T: 'static { ... }
}Expand description
An extension trait for Readable<Option<T>> that provides some convenience methods.
Provided Methods§
Sourcefn as_ref(&self) -> Option<ReadableRef<'_, Self, T>>where
T: 'static,
fn as_ref(&self) -> Option<ReadableRef<'_, Self, T>>where
T: 'static,
Attempts to read the inner value of the Option.