[−][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 i8
[src]
impl PhfHash for i64
[src]
impl PhfHash for [u8; 1]
[src]
impl PhfHash for [u8; 14]
[src]
impl PhfHash for i32
[src]
impl PhfHash for [u8; 8]
[src]
impl PhfHash for str
[src]
impl PhfHash for [u8; 5]
[src]
impl PhfHash for [u8; 32]
[src]
impl PhfHash for bool
[src]
impl PhfHash for [u8; 9]
[src]
impl PhfHash for u16
[src]
impl PhfHash for [u8; 2]
[src]
impl PhfHash for u8
[src]
impl PhfHash for u128
[src]
impl<'a, T> PhfHash for &'a T where
T: 'a + PhfHash + ?Sized,
[src]
T: 'a + PhfHash + ?Sized,