3 ms·
Oops, it's exactly what I need. Thank you very much, I'll strike out this text in article.
by EugeneOZ 11y ago
Oops, it's exactly what I need. Thank you very much, I'll strike out this text in article.
- oconnor663 11y agoThe Result type also has a bunch of methods like `map` and `and_then` that you can use to write code against only the success case. Take a look at https://doc.rust-lang.org/std/result/enum.Result.html https://doc.rust-lang.org/std/result/enum.Result.html
- yawaramin 11y agoSee also https://www.reddit.com/r/rust/comments/3h4u4v/take_advantage_of_iteration_syntax_to_act_on/ https://www.reddit.com/r/rust/comments/3h4u4v/take_advantage...