fn merge_sort<T, F>(v: &mut [T], is_less: F)Examples found in repository?
crates/competitive/src/algorithm/sort.rs (line 40)
36 fn merge_sort(&mut self)
37 where
38 T: Ord,
39 {
40 merge_sort(self, |a, b| a.lt(b));
41 }
42 fn merge_sort_by<F>(&mut self, mut compare: F)
43 where
44 F: FnMut(&T, &T) -> Ordering,
45 {
46 merge_sort(self, |a, b| compare(a, b) == Ordering::Less);
47 }