Trait pthash::hashing::Hasher

source ·
pub trait Hasher {
    type Hash: Hash;

    // Required method
    fn hash(val: impl Hashable, seed: u64) -> Self::Hash;
}
Expand description

Trait of generic non-cryptographic hash function, which can be used to back a PTHash perfect hash function.

Required Associated Types§

source

type Hash: Hash

Required Methods§

source

fn hash(val: impl Hashable, seed: u64) -> Self::Hash

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Hasher for MurmurHash2_64

§

type Hash = hash64

source§

impl Hasher for MurmurHash2_128

§

type Hash = hash128