pub trait MaybeExtwhere
Self: Sized,{
// Provided methods
fn maybe(
self,
bool: impl Into<bool>,
then: impl FnOnce(Self) -> Self,
) -> Self { ... }
fn map<T>(self, data: Option<T>, then: impl FnOnce(Self, T) -> Self) -> Self { ... }
}Provided Methods§
fn maybe(self, bool: impl Into<bool>, then: impl FnOnce(Self) -> Self) -> Self
fn map<T>(self, data: Option<T>, then: impl FnOnce(Self, T) -> 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.