Trait algorithms_rs::sort::Sort
source · pub trait Sort<T: PartialOrd + Clone> {
fn from_vec(array: Vec<T>) -> Self;
fn inner(&self) -> Vec<T>;
fn sort_by<F>(&mut self, f: F)
where
F: FnOnce(&T, &T) -> bool + Copy;
fn sort(&mut self) { ... }
fn is_sort(&self) -> bool { ... }
fn is_sort_by<F>(&self, f: F) -> bool
where
F: FnOnce(&T, &T) -> bool + Copy,
{ ... }
}
Expand description
Generic interface to sorting algorithms