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.
Object Safety§
This trait is not object safe.