Function sort_it::algorithms::gnome_sort::gnome_sort_timed
source · [−]pub fn gnome_sort_timed<T>(arr: Vec<T>) -> (Vec<T>, Duration) where
T: PartialEq + PartialOrd + Clone + Copy,
Expand description
The gnome sort algorithm but timed.
Sorts a given Vec
and returns the result and the Duration
of the process.