pub trait Unwrap {
    type Output;

    fn unwrap_or_else<F>(self, f: F) -> Self::Output
    where
        F: FnOnce() -> Self::Output
; }
Expand description

Implemented by Set and Unset in order to unwrap their value.

This is useful in case the use-site does not know if it is working with a set or an unset value generically unwrap it using a closure for fallback.

Required Associated Types

The output type of the unwrap_or_else operation.

Required Methods

Returns the set value or evaluates the given closure.

Implementors