Add Iterator::try_for_each The fallible version of `for_each` aka the stateless version of `try_fold`. Inspired by @cuviper's comment in https://github.com/rust-lang/rust/pull/45379#issuecomment-338370020 as a more direct and obvious solution than `.map(f).collect::<Result<(), _>>()`. Like `for_each`, no need for an `r` version thanks to overrides in `Rev`. `iterator_try_fold` tracking issue: https://github.com/rust-lang/rust/issues/45594 |
||
|---|---|---|
| .. | ||
| iterator.rs | ||
| mod.rs | ||
| range.rs | ||
| sources.rs | ||
| traits.rs | ||