Type Alias phf_shared::HashKey

source ·
pub type HashKey = u64;
Expand description

A central typedef for hash keys

Makes experimentation easier by only needing to be updated here.

Trait Implementations§

source§

impl FmtConst for u64

source§

fn fmt_const(&self, f: &mut Formatter<'_>) -> Result

Print a const expression representing this value.
source§

impl PhfBorrow<u64> for u64

source§

fn borrow(&self) -> &u64

Convert a reference to self to a reference to the borrowed type.
source§

impl PhfHash for u64

source§

fn phf_hash<H: Hasher>(&self, state: &mut H)

Feeds the value into the state given, updating the hasher as necessary.
source§

fn phf_hash_slice<H: Hasher>(data: &[Self], state: &mut H)where Self: Sized,

Feeds a slice of this type into the state provided.