pub trait OptionExt<T> {
// Required methods
fn and_then_ok<U, E, F>(self, f: F) -> StdResult<Option<U>, E>
where F: FnOnce(T) -> StdResult<Option<U>, E>;
fn unwrap_or_else_ok<E, F>(self, f: F) -> StdResult<T, E>
where F: FnOnce() -> StdResult<T, E>;
}Required Methods§
fn and_then_ok<U, E, F>(self, f: F) -> StdResult<Option<U>, E>
fn unwrap_or_else_ok<E, F>(self, f: F) -> StdResult<T, E>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".