Home
last modified time | relevance | path

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

/external/rust/crates/itertools/src/
Dgrouping_map.rs316 self.min_by(|_, v1, v2| V::cmp(v1, v2)) in min()
338 pub fn min_by<F>(self, mut compare: F) -> HashMap<K, V> in min_by() function
370 self.min_by(|key, v1, v2| f(key, v1).cmp(&f(key, v2))) in min_by_key()
Dlib.rs3274 .min_by(|x, y| Ord::cmp(&x.1, &y.1)) in position_min()
3302 .min_by(|x, y| Ord::cmp(&key(&x.1), &key(&y.1))) in position_min_by_key()
3330 .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/crosvm/tools/impl/catapult_converter/src/
Dmain.rs210 values.iter().cloned().min_by(f64::total_cmp).unwrap(), in new()
/external/rust/crates/itertools/tests/
Dquick.rs1395 …let lookup = a.iter().copied().into_grouping_map_by(|i| i % modulo).min_by(|_, v1, v2| v1.cmp(v2));
1401 .map(|(key, vals)| (key, vals.into_iter().min_by(|v1, v2| v1.cmp(v2)).unwrap()))
1406 …assert_eq!(Some(min), a.iter().copied().filter(|&val| val % modulo == key).min_by(|v1, v2| v1.cmp(…
1536 .min_by(|_, _, _| Ordering::Equal);
1704 if let Some(result_element) = a.iter().min_by(compare) {
/external/rust/crates/rayon/src/iter/
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()
Dmod.rs1467 fn min_by<F>(self, f: F) -> Option<Self::Item> in min_by() method