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