Home
last modified time | relevance | path

Searched refs:try_fold (Results 1 – 16 of 16) sorted by relevance

/external/rust/crates/fallible-iterator/src/
Dlib.rs481 self.try_fold(init, f) in fold()
488 fn try_fold<B, E, F>(&mut self, mut init: B, mut f: F) -> Result<B, E> in try_fold() method
507 self.try_fold((), |(), v| { in all()
524 self.try_fold((), |(), v| { in any()
541 self.try_fold((), |(), v| { in find()
570 self.try_fold(0, |n, v| { in position()
1221 fn try_fold<C, E, G>(&mut self, init: C, mut f: G) -> Result<C, E> in try_fold() function
1227 self.it.try_fold(init, |b, v| f(b, map(v)?)) in try_fold()
1318 fn try_fold<B, E, F>(&mut self, init: B, mut f: F) -> Result<B, E> in try_fold() function
1325 let init = self.front.try_fold(init, &mut f)?; in try_fold()
[all …]
/external/mesa3d/src/gallium/drivers/r600/sb/
Dsb_expr.h65 bool try_fold(value *v);
66 bool try_fold(node *n);
Dsb_expr.cpp132 bool expr_handler::try_fold(value* v) { in try_fold() function in r600_sb::expr_handler
136 try_fold(v->def); in try_fold()
144 bool expr_handler::try_fold(node* n) { in try_fold() function in r600_sb::expr_handler
Dsb_valtable.cpp150 if (v->def && ex.try_fold(v)) { in add_value()
/external/rust/crates/rayon/src/compile_fail/
Dmust_use.rs47 try_fold /** v.par_iter().try_fold(|| 0, |x, _| Some(x)); */
/external/rust/crates/futures-util/src/stream/try_stream/
Dmod.rs96 mod try_fold; module
98 pub use self::try_fold::TryFold;
731 fn try_fold<T, Fut, F>(self, init: T, f: F) -> TryFold<Self, Fut, T, F> in try_fold() method
/external/rust/crates/fallible-iterator/
DCHANGELOG.md22 …`partition`, `find_map`, `max_by`, `min_by`, `unzip`, `cycle`, and `try_fold` to `FallibleIterator…
/external/crosvm/fuzz/
Dvirtqueue_fuzzer.rs104 .try_fold(0u32, |sum, cur| sum.checked_add(cur.len));
/external/rust/crates/rayon/tests/
Dclones.rs125 check(v.par_iter().with_max_len(1).try_fold(|| 0, |_, &x| x)); in clone_adaptors()
Ddebug.rs148 check(v.par_iter().try_fold(|| 0, |x, _| Some(x))); in debug_adaptors()
/external/rust/crates/rayon/src/iter/
Dmod.rs145 mod try_fold; module
185 try_fold::{TryFold, TryFoldWith},
1310 fn try_fold<T, R, ID, F>(self, identity: ID, fold_op: F) -> TryFold<Self, R, ID, F> in try_fold() method
/external/rust/crates/pin-project-internal/src/
Dutils.rs138 .try_fold((0, None), |(i, mut prev), attr| { in position_exact()
/external/rust/crates/pin-project-internal/src/pin_project/
Dderive.rs305 let has_field = variants.iter().try_fold(false, |has_field, v| { in validate_enum()
/external/rust/crates/rayon/
DRELEASES.md236 - `ParallelIterator` now has fallible methods `try_fold()`, `try_reduce()`,
239 `Iterator::try_fold()` and `try_for_each()` that were stabilized in Rust 1.27.
/external/rust/crates/itertools/
DCHANGELOG.md81 - Deprecate `.fold_while()` in favour of std's `.try_fold()`
/external/rust/crates/itertools/src/
Dlib.rs2166 let result = self.try_fold(init, #[inline(always)] |acc, v| in fold_while()