pub trait OrAssignment: Sized {
// Required methods
fn or_def(self, filter: bool) -> Self;
fn or_val(self, filter: bool, f: impl FnOnce() -> Self) -> Self;
fn or_map(
self,
filter: impl FnOnce(&Self) -> bool,
f: impl FnOnce(Self) -> Self,
) -> Self;
}Required Methods§
fn or_def(self, filter: bool) -> Self
fn or_val(self, filter: bool, f: impl FnOnce() -> Self) -> Self
fn or_map( self, filter: impl FnOnce(&Self) -> bool, f: impl FnOnce(Self) -> Self, ) -> Self
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.