Unwraps the inner value of this Result<T>. If this Result was an error variant, then an
error will be thrown with the message specified.
The message to set on an Error if this Result is not a Success variant.
The inner value of this Result if this Result is a Success variant.
Unwraps the Result<T, E>. Throws the inner type if it was a Failure<E>
The inner type if it was a Success<T>
Maps a
Result<T, E>toResult<NewT, E>by applying a function to a containedSuccess<T>value, leaving anError<E>value untouched. The resultingResult<NewT, E>is then flattened to avoid nested Result types.