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
resultis an err resultTemplate: T
The value type of the
Okresult.Template: E
The error type of the
Errresult.Param: result
Result to unwrap the value from
Returns
The underlying value of an ok result