Home
last modified time | relevance | path

Searched refs:min_by (Results 1 – 8 of 8) sorted by relevance

/external/rust/crates/itertools/src/
Dgrouping_map.rs317 self.min_by(|_, v1, v2| V::cmp(v1, v2)) in min()
339 pub fn min_by<F>(self, mut compare: F) -> HashMap<K, V> in min_by() function
371 self.min_by(|key, v1, v2| f(key, &v1).cmp(&f(key, &v2))) in min_by_key()
Dlib.rs2776 .min_by(|x, y| Ord::cmp(&x.1, &y.1)) in position_min()
2804 .min_by(|x, y| Ord::cmp(&key(&x.1), &key(&y.1))) in position_min_by_key()
2832 .min_by(|x, y| compare(&x.1, &y.1)) in position_min_by()
/external/rust/crates/fallible-iterator/
DCHANGELOG.md22 …`partition`, `find_map`, `max_by`, `min_by`, `unzip`, `cycle`, and `try_fold` to `FallibleIterator…
/external/rust/crates/fallible-iterator/src/
Dtest.rs276 fn min_by() { in min_by() function
278 assert_eq!(it.min_by(|a, b| Ok(b.cmp(a))), Ok(Some(3))); in min_by()
Dlib.rs644 self.min_by(|a, b| Ok(a.cmp(b))) in min()
674 fn min_by<F>(mut self, mut f: F) -> Result<Option<Self::Item>, Self::Error> in min_by() method
/external/rust/crates/itertools/tests/
Dquick.rs1383 …let lookup = a.iter().copied().into_grouping_map_by(|i| i % modulo).min_by(|_, v1, v2| v1.cmp(v2));
1389 .map(|(key, vals)| (key, vals.into_iter().min_by(|v1, v2| v1.cmp(v2)).unwrap()))
1394 …assert_eq!(Some(min), a.iter().copied().filter(|&val| val % modulo == key).min_by(|v1, v2| v1.cmp(…
1524 .min_by(|_, _, _| Ordering::Equal);
/external/rust/crates/rayon/src/iter/
Dmod.rs1457 fn min_by<F>(self, f: F) -> Option<Self::Item> in min_by() method
Dtest.rs1569 slice.par_iter().min_by(|x, y| x.0.cmp(&y.0)), in min_max_by()
1570 slice.iter().min_by(|x, y| x.0.cmp(&y.0)) in min_max_by()