pub trait Unwrap {
type Output;
// Required method
fn unwrap_or_else<F>(self, f: F) -> Self::Output
where F: FnOnce() -> Self::Output;
}
Expand description
Required Associated Types§
Required Methods§
Sourcefn unwrap_or_else<F>(self, f: F) -> Self::Output
fn unwrap_or_else<F>(self, f: F) -> Self::Output
Returns the set value or evaluates the given closure.
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.