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

Method hash_eq

crates/kernel/src/level.rs:85–87  ·  view source on GitHub ↗

Structural equality by Merkle hash (pointer-first fast path).

(&self, other: &KUniv<M>)

Source from the content-addressed store, hash-verified

83
84 /// Canonical-identity equality: `ptr_eq` or equal intern uid. Sound in
85 /// the affirmative; incomplete in the negative (independently built
86 /// equal levels carry distinct uids) — `==` adds the structural
87 /// fallback.
88 pub fn hash_eq(&self, other: &KUniv<M>) -> bool {
89 self.ptr_eq(other) || self.addr() == other.addr()
90 }

Callers 3

eqMethod · 0.45
univ_eqFunction · 0.45
univ_geqFunction · 0.45

Calls 2

ptr_eqMethod · 0.45
addrMethod · 0.45

Tested by

no test coverage detected