pub trait OptionExt: Sized + Sealed {
    type T;

    // Required methods
    fn is_none_or(self, f: impl FnOnce(Self::T) -> bool) -> bool;
    fn contains<U>(&self, u: &U) -> bool
       where Self::T: PartialEq<U>;
}

Required Associated Types§

source

type T

Required Methods§

source

fn is_none_or(self, f: impl FnOnce(Self::T) -> bool) -> bool

source

fn contains<U>(&self, u: &U) -> boolwhere Self::T: PartialEq<U>,

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T> OptionExt for Option<T>

§

type T = T

source§

fn is_none_or(self, f: impl FnOnce(Self::T) -> bool) -> bool

source§

fn contains<U>(&self, u: &U) -> boolwhere Self::T: PartialEq<U>,

Implementors§