Trait ink_env::call::utils::Unwrap [−][src]
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.
Associated Types
Loading content...Required methods
fn unwrap_or_else<F>(self, f: F) -> Self::Output where
F: FnOnce() -> Self::Output,
[src]
F: FnOnce() -> Self::Output,
Returns the set value or evaluates the given closure.
Implementors
impl<T> Unwrap for Set<T>
[src]
type Output = T
fn unwrap_or_else<F>(self, _: F) -> Self::Output where
F: FnOnce() -> Self::Output,
[src]
F: FnOnce() -> Self::Output,