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

Method get_hash

crates/common/src/env.rs:152–156  ·  view source on GitHub ↗

Returns the precomputed Blake3 hash of this name.

(&self)

Source from the content-addressed store, hash-verified

150
151 /// Returns the precomputed Blake3 hash of this name.
152 pub fn get_hash(&self) -> &Hash {
153 match self.0.as_ref() {
154 NameData::Anonymous(h) | NameData::Str(.., h) | NameData::Num(.., h) => h,
155 }
156 }
157 /// Constructs the anonymous (root) name.
158 pub fn anon() -> Self {
159 let hash = blake3::hash(&[NANON]);

Callers 15

print_const_comparisonFunction · 0.80
roundtrip_blockFunction · 0.80
print_rec_comparisonFunction · 0.80
check_decompileFunction · 0.80
compile_nameFunction · 0.80
univ_params_keyFunction · 0.80
collect_expr_tablesFunction · 0.80
compile_exprFunction · 0.80
compile_mutualFunction · 0.80
find_source_rec_targetFunction · 0.80
build_rec_rulesFunction · 0.80

Calls 8

hash_constant_valFunction · 0.85
hash_reducibility_hintsFunction · 0.85
hash_definition_safetyFunction · 0.85
hash_quot_kindFunction · 0.85
hash_recursor_ruleFunction · 0.85
as_bytesMethod · 0.80
finalizeMethod · 0.80
lenMethod · 0.45

Tested by

no test coverage detected