pub trait EndpointOptionExt<T>: Endpoint<Output = Option<T>> + Sized {
// Provided methods
fn map_some<F, U>(self, f: F) -> MapSome<Self, F>
where F: FnOnce(T) -> U + Clone + Send + Sync { ... }
fn ok_or_else<F, U>(self, f: F) -> OkOrElse<Self, F>
where F: FnOnce() -> U + Clone + Send + Sync { ... }
}Expand description
A set of extension methods which is available when the output is value is an Option.
Provided Methods§
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.