Unpacking some Rust ergonomics: getting a single Result from an iterator of them

from blog ntietz.com blog - technically a blog, | ↗ original
↗ original
Rust has a lot of nice things that make life easy. One of the least discussed ones is also one of my favorites. It's a little nugget in the standard library that makes handling possible failures a lot easier. And it's not even baked in—it just falls out from the type system. Nicely handling multiple Results or Options When you do something that...