pub trait Unwrap {
type Output;
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::Outputwhere
F: FnOnce() -> Self::Output,
fn unwrap_or_else<F>(self, f: F) -> Self::Outputwhere
F: FnOnce() -> Self::Output,
Returns the set value or evaluates the given closure.