Lines Matching refs:less_than
62 fn heapify<T, S>(data: &mut [T], mut less_than: S) in heapify()
66 sift_down(data, i, &mut less_than); in heapify()
71 fn sift_down<T, S>(heap: &mut [T], index: usize, mut less_than: S) in sift_down()
82 if right < heap.len() && less_than(&heap[right], &heap[child]) { in sift_down()
87 if !less_than(&heap[child], &heap[pos]) { in sift_down()
156 less_than: F, field
169 pub fn kmerge_by<I, F>(iterable: I, mut less_than: F) in kmerge_by()
179 heapify(&mut heap, |a, b| less_than.kmerge_pred(&a.head, &b.head)); in kmerge_by()
180 KMergeBy { heap, less_than } in kmerge_by()
188 clone_fields!(heap, less_than);
206 let less_than = &mut self.less_than; in next() localVariable
207 sift_down(&mut self.heap, 0, |a, b| less_than.kmerge_pred(&a.head, &b.head)); in next()