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