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 with custom message if
result
is an err resultTemplate: T
The value type of the
Ok
result.Param: result
Result to unwrap the value from
Param: message
Custom message to throw with