Trait FlattenOptionRefOption
pub trait FlattenOptionRefOption {
type Value;
// Required method
fn flatten(&self) -> Option<&Self::Value>;
}Expand description
Helper trait to implement flatten() on Option<&Option<T>>.
Required Associated Types§
type Value
type Value
The type of the value contained in the double option.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".