[−][src]Trait phf::PhfHash
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.
Required methods
fn phf_hash<H>(&self, state: &mut H) where
H: Hasher,
H: Hasher,
Feeds the value into the state given, updating the hasher as necessary.
Provided methods
fn phf_hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
H: Hasher,
Feeds a slice of this type into the state provided.
Implementations on Foreign Types
impl PhfHash for [u8; 31]
[src]
impl PhfHash for [u8; 21]
[src]
impl PhfHash for bool
[src]
impl PhfHash for i128
[src]
impl PhfHash for [u8; 12]
[src]
impl PhfHash for [u8; 6]
[src]
impl<'a, T> PhfHash for &'a T where
T: 'a + PhfHash + ?Sized,
[src]
T: 'a + PhfHash + ?Sized,