MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / cmp

Method cmp

nodedb-vector/src/codec_index/build.rs:32–37  ·  view source on GitHub ↗
(&self, other: &Self)

Source from the content-addressed store, hash-verified

30
31impl Ord for Cand {
32 fn cmp(&self, other: &Self) -> std::cmp::Ordering {
33 self.dist
34 .partial_cmp(&other.dist)
35 .unwrap_or(std::cmp::Ordering::Equal)
36 .then(self.idx.cmp(&other.idx))
37 }
38}
39
40impl<C: VectorCodec> HnswCodecIndex<C> {

Callers 1

partial_cmpMethod · 0.45

Calls 1

partial_cmpMethod · 0.45

Tested by

no test coverage detected