The value to use if result
is an Err
.
The Result
instance to unwrap if it is an Ok
.
The content of result
if it is an Ok
, otherwise
defaultValue
.
T The value wrapped in the Ok
.
E The value wrapped in the Err
.
Generated using TypeDoc
Safely get the value out of the
Ok
variant of aResult
.This is the recommended way to get a value out of a
Result
most of the time.