pub trait SliceSortExt<T> {
// Required methods
fn bubble_sort(&mut self)
where T: Ord;
fn bubble_sort_by<F>(&mut self, compare: F)
where F: FnMut(&T, &T) -> Ordering;
fn merge_sort(&mut self)
where T: Ord;
fn merge_sort_by<F>(&mut self, compare: F)
where F: FnMut(&T, &T) -> Ordering;
fn insertion_sort(&mut self)
where T: Ord;
fn insertion_sort_by<F>(&mut self, compare: F)
where F: FnMut(&T, &T) -> Ordering;
fn radix_sort_by_key<K>(&mut self, key: impl FnMut(&T) -> K)
where T: Clone,
K: RadixSortKey;
}Required Methods§
fn bubble_sort(&mut self)where
T: Ord,
fn bubble_sort_by<F>(&mut self, compare: F)
fn merge_sort(&mut self)where
T: Ord,
fn merge_sort_by<F>(&mut self, compare: F)
fn insertion_sort(&mut self)where
T: Ord,
fn insertion_sort_by<F>(&mut self, compare: F)
fn radix_sort_by_key<K>(&mut self, key: impl FnMut(&T) -> K)where
T: Clone,
K: RadixSortKey,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".