pub trait ReadableOptionExt<T: 'static>: Readable<Target = Option<T>> {
// Provided methods
fn unwrap(&self) -> T
where T: Clone { ... }
fn as_ref(&self) -> Option<ReadableRef<'_, Self, T>> { ... }
}
Expand description
An extension trait for Readable<Option
Provided Methods§
Sourcefn as_ref(&self) -> Option<ReadableRef<'_, Self, T>>
fn as_ref(&self) -> Option<ReadableRef<'_, Self, T>>
Attempts to read the inner value of the Option.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.