GenZNestedOption

Trait GenZNestedOption 

Source
pub trait GenZNestedOption: GenZOption {
    type InnerInner;

    // Required method
    fn on_a_stack(self) -> Option<Self::InnerInner>;
}

Required Associated Types§

Required Methods§

Source

fn on_a_stack(self) -> Option<Self::InnerInner>

Converts from Option<Option<T>> to Option<T>.

Flattening only removes one level of nesting at a time:

See Option::flatten documentation for more details.

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.

Implementations on Foreign Types§

Source§

impl<T> GenZNestedOption for Option<Option<T>>

Implementors§