Unwraps a Result, returning the success value. Throws an error if the
Result is Result.Err.
This is useful when you're confident that a Result should contain a success
value and want to treat errors as exceptional conditions. The error message
will be constructed from the error value using the provided string
conversion function.
Unwraps a
Result
, returning the success value. Throws an error if theResult
isResult.Err
.This is useful when you're confident that a Result should contain a success value and want to treat errors as exceptional conditions. The error message will be constructed from the error value using the provided string conversion function.