MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / cmp

Method cmp

graphlite/src/exec/streaming_topk.rs:82–89  ·  view source on GitHub ↗
(&self, other: &Self)

Source from the content-addressed store, hash-verified

80
81impl Ord for ScoredRow {
82 fn cmp(&self, other: &Self) -> Ordering {
83 // Reverse ordering for min-heap
84 // (BinaryHeap is max-heap by default, we want min-heap)
85 other
86 .score
87 .partial_cmp(&self.score)
88 .unwrap_or(Ordering::Equal)
89 }
90}
91
92impl PartialOrd for ScoredRow {

Callers 4

evict_if_neededMethod · 0.80
partial_cmpMethod · 0.80
compare_valuesMethod · 0.80
apply_order_byMethod · 0.80

Calls 1

partial_cmpMethod · 0.80

Tested by

no test coverage detected