Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Treatment unwrapOr

std/ops/option/block::unwrapOr


Generics

◻ T (any)

Parameters

↳ var default: T

Inputs

⇥ option: Block<Option<T>>

Outputs

↦ value: Block<T>


Unwrap option block with default value

Unwrap blocking option, sending default value if option is none.