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

Method get_name

crates/common/src/env.rs:1399–1410  ·  view source on GitHub ↗

Returns the name of this constant.

(&self)

Source from the content-addressed store, hash-verified

1397 hasher.update(name.get_hash().as_bytes());
1398 }
1399 hasher.update(&v.num_params.to_le_bytes());
1400 hasher.update(&v.num_indices.to_le_bytes());
1401 hasher.update(&v.num_motives.to_le_bytes());
1402 hasher.update(&v.num_minors.to_le_bytes());
1403 hasher.update(&(v.rules.len() as u64).to_le_bytes());
1404 for rule in &v.rules {
1405 hash_recursor_rule(rule, &mut hasher);
1406 }
1407 hasher.update(&[u8::from(v.k)]);
1408 hasher.update(&[u8::from(v.is_unsafe)]);
1409 },
1410 }
1411 hasher.finalize()
1412 }
1413

Callers 3

names_from_addrsFunction · 0.45
const_alpha_eq_with_permFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected