Trait depends::core::HashValue

source ·
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§

source

fn hash_value(&self, hasher: &mut impl Hasher) -> NodeHash

Either a unique number, or a value detailing that this node cannot be hashed.

Implementations on Foreign Types§

source§

impl<T, N> HashValue for Ref<'_, NodeState<T, N>>where T: HashValue,

source§

fn hash_value(&self, hasher: &mut impl Hasher) -> NodeHash

Implementors§

source§

impl<T, N> HashValue for NodeState<T, N>where T: HashValue,