Trait shadow_rs::core::configuration::Flatten

source ·
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.

Required Methods§

source

fn flatten(self) -> Option<T>

source

fn flatten_ref(&self) -> Option<&T>

Implementations on Foreign Types§

source§

impl<T> Flatten<T> for Option<NullableOption<T>>

source§

fn flatten(self) -> Option<T>

source§

fn flatten_ref(&self) -> Option<&T>

Implementors§