pub trait FlattenOptionRefOption {
type Value;
// Required method
fn flatten(&self) -> Option<&Self::Value>;
}Expand description
Helper trait to implement flatten() on Option<&Option<T>>.
pub trait FlattenOptionRefOption {
type Value;
// Required method
fn flatten(&self) -> Option<&Self::Value>;
}Helper trait to implement flatten() on Option<&Option<T>>.