Searched refs:fold_while (Results 1 – 3 of 3) sorted by relevance
41 - Undeprecate `Itertools::fold_while` (#476)142 - Deprecate `.fold_while()` in favour of std's `.try_fold()`195 - `.fold_while()` uses `&mut self` and returns `FoldWhile<T>`, for composability #168287 - Add `.fold_while()`, an iterator method that is a fold that can short-circuit.
1106 fn fold_while() { in fold_while() function1109 let sum = vec.into_iter().fold_while(0, |acc, item| { in fold_while()
2400 fn fold_while<B, F>(&mut self, init: B, mut f: F) -> FoldWhile<B> in fold_while() method