pub trait Flatten<T> {
// Required methods
fn flatten(self) -> Option<T>;
fn flatten_ref(&self) -> Option<&T>;
}
Expand description
A trait for Option
-like types that can be flattened into a single Option
.
pub trait Flatten<T> {
// Required methods
fn flatten(self) -> Option<T>;
fn flatten_ref(&self) -> Option<&T>;
}
A trait for Option
-like types that can be flattened into a single Option
.