Trait depends::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 HashValue for u64

source§

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

source§

impl HashValue for i16

source§

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

source§

impl HashValue for String

source§

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

source§

impl HashValue for usize

source§

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

source§

impl HashValue for u32

source§

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

source§

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

source§

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

source§

impl HashValue for u8

source§

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

source§

impl HashValue for isize

source§

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

source§

impl HashValue for bool

source§

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

source§

impl HashValue for i128

source§

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

source§

impl HashValue for u16

source§

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

source§

impl HashValue for i8

source§

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

source§

impl HashValue for i32

source§

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

source§

impl HashValue for u128

source§

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

source§

impl HashValue for i64

source§

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

source§

impl HashValue for char

source§

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

Implementors§