Function core::slice::sort::choose_pivot
source · pub(super) fn choose_pivot<T, F>(v: &mut [T], is_less: &mut F) -> (usize, bool)where
F: FnMut(&T, &T) -> bool,
🔬This is a nightly-only experimental API. (
slice_internals
)Expand description
Chooses a pivot in v
and returns the index and true
if the slice is likely already sorted.
Elements in v
might be reordered in the process.