MCPcopy Create free account
hub / github.com/douchuan/algorithm / compare

Method compare

src/common/priority_queue.rs:122–124  ·  view source on GitHub ↗
(&self, i: usize, j: usize)

Source from the content-addressed store, hash-verified

120 }
121
122 fn compare(&self, i: usize, j: usize) -> bool {
123 (self.comparator)(&self.pq[i], &self.pq[j])
124 }
125}
126
127impl<T: PartialOrd + Copy + Clone> IndexPQ<T> {

Callers 2

swimMethod · 0.80
sinkMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected