Function glidesort::sort_with_buffer_by
source · pub fn sort_with_buffer_by<T, F>(
v: &mut [T],
buffer: &mut [MaybeUninit<T>],
compare: F
)where
F: FnMut(&T, &T) -> Ordering,
Expand description
Like sort_by
, except this function does not allocate and uses the passed buffer instead.