Treatment wrap
std/ops/option/block::wrap
Generics
◻ T (any)
Inputs
⇥ value: Block<T>
Outputs
↦ option: Block<Option<T>>
Wrap a block value into option
Takes a blocking value and turn if into filled option.
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
std/ops/option/block::wrap
◻ T (any)
⇥ value: Block<T>
↦ option: Block<Option<T>>
Wrap a block value into option
Takes a blocking value and turn if into filled option.