Function sort_it::algorithms::slowsort::slowsort_stepped_and_timed
source · [−]pub fn slowsort_stepped_and_timed<T>(
arr: Vec<T>
) -> (Vec<T>, Vec<Vec<T>>, Duration) where
T: PartialEq + PartialOrd + Clone + Copy,
Expand description
The slowsort algorithm but stepped and timed.
Sorts the given Vec
and returns the result and a Vec
containing each step of the process,
including the Duration
of the entire process.