pub trait OptionExtensions<T> {
// Required method
fn is_none_or_ex(&self, f: impl FnOnce(&T) -> bool) -> bool;
}Required Methods§
Sourcefn is_none_or_ex(&self, f: impl FnOnce(&T) -> bool) -> bool
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.