Inverts the Outcome so that the Success value becomes the Failure error and vice versa.
Return
A new Outcome with the values inverted.
Parameters
The Ok
type of the receiver Outcome, and Error
type of the returned Outcome.
The Error
type of the receiver Outcome, and Ok
type of the returned Outcome.