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;
}
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)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.