Retrieve the value from an Err
result.
This override documents that an error is thrown when unwrapping an Err
result.
An Err
result value
Never
Retrieve the value from an Ok
result.
This override is required for type safety for Ok
results.
The successful value of T
result
Retrieve the value from an ok result
Will throw if
result
is an err resultTemplate: T
The value type of the
Ok
result.Template: E
The error type of the
Err
result.Param: result
Result to unwrap the value from
Returns
The underlying value of an ok result