Searched refs:min_by (Results 1 – 8 of 8) sorted by relevance
/external/rust/crates/itertools/src/ |
D | grouping_map.rs | 317 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()
|
D | lib.rs | 2776 .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/ |
D | CHANGELOG.md | 22 …`partition`, `find_map`, `max_by`, `min_by`, `unzip`, `cycle`, and `try_fold` to `FallibleIterator…
|
/external/rust/crates/fallible-iterator/src/ |
D | test.rs | 276 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()
|
D | lib.rs | 644 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/ |
D | quick.rs | 1383 …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/ |
D | mod.rs | 1457 fn min_by<F>(self, f: F) -> Option<Self::Item> in min_by() method
|
D | test.rs | 1569 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()
|