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