Returns the first Ok result from two Result inputs. If the left result is Ok, it is returned. Otherwise, the right result is returned. This is useful for providing a fallback successful result.
Ok
Result
left
right
The type of the successful value.
The type of the error value.
The primary result.
The fallback result.
The left result if it's Ok, otherwise the right result.
Returns the first
Ok
result from twoResult
inputs. If theleft
result isOk
, it is returned. Otherwise, theright
result is returned. This is useful for providing a fallback successful result.