pub trait ReadableOptionExt<T>: Readable<Option<T>>where
    T: 'static,{
    // Provided methods
    fn unwrap(&self) -> T
       where T: Clone { ... }
    fn as_ref(&self) -> Option<Self::Ref<T>> { ... }
}
Expand description

An extension trait for Readable<Option> that provides some convenience methods.

Provided Methods§

fn unwrap(&self) -> Twhere T: Clone,

Unwraps the inner value and clones it.

fn as_ref(&self) -> Option<Self::Ref<T>>

Attempts to read the inner value of the Option.

Object Safety§

This trait is not object safe.

Implementors§

§

impl<T, R> ReadableOptionExt<T> for Rwhere T: 'static, R: Readable<Option<T>>,