Trait phf_shared::PhfHash
source · [−]pub trait PhfHash {
fn phf_hash<H: Hasher>(&self, state: &mut H);
fn phf_hash_slice<H: Hasher>(data: &[Self], state: &mut H)
where
Self: Sized,
{ ... }
}
Expand description
A trait implemented by types which can be used in PHF data structures.
This differs from the standard library’s Hash
trait in that PhfHash
’s
results must be architecture independent so that hashes will be consistent
between the host and target when cross compiling.