Trait NodeHashs

Source
pub trait NodeHashs {
    type Hash: PrimInt;
    type Kind: Default + HashKind;

    // Required methods
    fn hash(&self, kind: &Self::Kind) -> Self::Hash;
    fn acc(&mut self, other: &Self);
}

Required Associated Types§

Source

type Hash: PrimInt

Source

type Kind: Default + HashKind

the Default value is the most discriminating one

Required Methods§

Source

fn hash(&self, kind: &Self::Kind) -> Self::Hash

Source

fn acc(&mut self, other: &Self)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§