Function core::slice::select::partition_at_index
source · pub fn partition_at_index<T, F>(
v: &mut [T],
index: usize,
is_less: F
) -> (&mut [T], &mut T, &mut [T])where
F: FnMut(&T, &T) -> bool,
Expand description
Reorder the slice such that the element at index
is at its final sorted position.