Function rayon::slice::quicksort::partial_insertion_sort
source ยท fn partial_insertion_sort<T, F>(v: &mut [T], is_less: &F) -> bool
Expand description
Partially sorts a slice by shifting several out-of-order elements around.
Returns true
if the slice is sorted at the end. This function is O(n) worst-case.