Maps the value to another one with a different type. It leaves the Error
type unaltered
The mapper method to apply an OK
value
a new result with the new mapped value
Maps the error type to another one. It leaves the Ok
type and value unaltered
This mapper method is not used for an Ok
value
a new result with the new mapped error type and an value
Runs the
handler
method an return the same an unaltered copy of theResult
. It could be used to log an output when the result isOk
without breaking the flow