OptionExtensions

Trait OptionExtensions 

Source
pub trait OptionExtensions<T> {
    // Required method
    fn is_none_or_ex(&self, f: impl FnOnce(&T) -> bool) -> bool;
}

Required Methods§

Source

fn is_none_or_ex(&self, f: impl FnOnce(&T) -> bool) -> bool

Substitute for unstable Option<T>::is_none_or

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> OptionExtensions<T> for Option<T>

Source§

fn is_none_or_ex(&self, f: impl FnOnce(&T) -> bool) -> bool

Implementors§