MCPcopy Create free account
hub / github.com/argumentcomputer/ix / cmp

Method cmp

crates/kernel/src/id.rs:39–41  ·  view source on GitHub ↗
(&self, other: &Self)

Source from the content-addressed store, hash-verified

37
38impl<M: KernelMode> Ord for KId<M> {
39 fn cmp(&self, other: &Self) -> std::cmp::Ordering {
40 self.addr.cmp(&other.addr).then_with(|| meta_cmp(&self.name, &other.name))
41 }
42}
43
44/// Derive ordering from MetaHash: hash both values and compare the digests.

Callers 10

find_duplicatesFunction · 0.45
partial_cmpMethod · 0.45
meta_cmpFunction · 0.45
dump_hot_missesMethod · 0.45
initial_partitionFunction · 0.45
subsume_varsFunction · 0.45
canonical_aux_orderMethod · 0.45

Calls 1

meta_cmpFunction · 0.85

Tested by 1