Function core::slice::sort::quicksort

source ·
pub fn quicksort<T, F>(v: &mut [T], is_less: F)where
    F: FnMut(&T, &T) -> bool,
🔬This is a nightly-only experimental API. (slice_internals)
Expand description

Sorts v using pattern-defeating quicksort, which is O(n * log(n)) worst-case.

This documentation is an old archive. Please see https://rust.docs.kernel.org instead.