Closed
Description
The core internal iteration methods in terms of which the other Iterator
methods can be implemented.
PR #45595, commit b32267f -- merged 2017-11-17
https://doc.rust-lang.org/nightly/std/iter/trait.Iterator.html#method.try_fold
https://doc.rust-lang.org/nightly/std/iter/trait.DoubleEndedIterator.html#method.try_rfold
Also try_for_each
(PR #48157, merged 2018-02-24), a convenience method that can be considered the fallible version of for_each
or the stateless version of try_fold
.
https://doc.rust-lang.org/nightly/std/iter/trait.Iterator.html#method.try_for_each
Pre-stabilization question list:
- Are these the best type parameters? Inference worse in method signature using associated type than with new generic type parameter eq-constrained to the associated type #45462
- Should there be a
try_foreach
as well? impl FromIterator<()> for () #45379 (comment) - Stabilize
rfold
beforetry_rfold
? Tracking issue for Iterator::try_fold and try_rfold (feature iterator_try_fold) #45594 (comment) - Stabilize
try_fold
before the others? Tracking issue for Iterator::try_fold and try_rfold (feature iterator_try_fold) #45594 (comment)