Function itertools::kmerge_impl::sift_down

source ยท
fn sift_down<T, S>(heap: &mut [T], index: usize, less_than: S)
where S: FnMut(&T, &T) -> bool,
Expand description

Sift down element at index (heap is a min-heap wrt the ordering)