pub trait HashValue {
// Required method
fn hash_value(&self, hasher: &mut impl Hasher) -> NodeHash;
}
Expand description
A unique number derived from the internal state of a node.
Required Methods§
sourcefn hash_value(&self, hasher: &mut impl Hasher) -> NodeHash
fn hash_value(&self, hasher: &mut impl Hasher) -> NodeHash
Either a unique number, or a value detailing that this node cannot be hashed.