map_err


Description:

public virtual Result<G> map_err (owned MapErrorFunc func)

If this result holds an exception, maps the exception to another exception by applying the given function to the exception, otherwise the returned result holds the value of this result.

Parameters:

func

a function applied to exception

Returns:

the mapped result