How to convert error type

Is there any method on Result that can convert error of one type to error of another type? Something like:

fn(self: Result<T, E>, Fun(E) -> F) -> Result<T, F>


1 Like

More generally, give this cheatsheet a try.

1 Like

@Cerber-Ursi Great tool. Thank you!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.