Skip to main content

quick_sort_in_place

Function quick_sort_in_place 

Source
pub fn quick_sort_in_place<T: Ord + Clone>(items: &mut [T])
Expand description

Sorts items in place using quick sort’s partitioning result.

This variant avoids returning an allocated Vec; internally it sorts a scratch buffer and copies back, so it does not require T: Ord callers to receive a new collection.