The function to apply to the value wrapped in Err
if
result
is an Err
.
The Result
instance to map over an error case for.
T The type of the value wrapped in the Ok
of the Result
.
E The type of the value wrapped in the Err
of the Result
.
F The type of the value wrapped in the Err
of a new Result
,
returned by the mapErrFn
.
Generated using TypeDoc
Map over a
Ok
, exactly as inmap
, but operating on the value wrapped in anErr
instead of the value wrapped in theOk
. This is handy for when you need to line up a bunch of different types of errors, or if you need an error of one shape to be in a different shape to use somewhere else in your codebase.Examples