Returns a new Result, mapping any Err value using the given transformation.
Result<S, W> mapErr<W extends Object>(W Function(F error) fn);