Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
127
impl<T: PartialOrd + Copy + Clone> IndexPQ<T> {
Callers
2
swim
Method · 0.80
sink
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected