Content
@
https://www.rust-lang.org
0 reply
0 recast
0 reaction
Agost Biro
@agostbiro
Results and options can be difficult to compose. Fortunately the `transpose` method makes this a breeze. E.g. if you're mapping over an option and need to return a result, you can just call transpose on the `Option<Result>` returned by `map` and propagate the error from the outer scope with `?`.
0 reply
0 recast
0 reaction