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

Interface MetaHash

crates/kernel/src/mode.rs:20–22  ·  view source on GitHub ↗

Serialize a metadata value into a `blake3::Hasher`. The `()` impl is a no-op, so erased metadata contributes nothing.

Source from the content-addressed store, hash-verified

18/// Serialize a metadata value into a `blake3::Hasher`.
19/// The `()` impl is a no-op, so erased metadata contributes nothing.
20pub trait MetaHash {
21 fn meta_hash(&self, hasher: &mut blake3::Hasher);
22}
23
24impl MetaHash for () {
25 fn meta_hash(&self, _hasher: &mut blake3::Hasher) {}

Callers

nothing calls this directly

Implementers 2

id.rscrates/kernel/src/id.rs
mode.rscrates/kernel/src/mode.rs

Calls

no outgoing calls

Tested by

no test coverage detected