Trait phf::PhfHash
[−]
[src]
pub trait PhfHash {
fn phf_hash<H>(&self, state: &mut H) where H: Hasher;
fn phf_hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher { ... }
}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
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
Feeds a slice of this type into the state provided.
Implementors
impl PhfHash for Stringimpl PhfHash for Vec<u8>impl<'a> PhfHash for &'a strimpl<'a> PhfHash for &'a [u8]impl PhfHash for strimpl PhfHash for [u8]impl<S> PhfHash for UniCase<S> where UniCase<S>: Hashimpl PhfHash for u8impl PhfHash for i8impl PhfHash for u16impl PhfHash for i16impl PhfHash for u32impl PhfHash for i32impl PhfHash for u64impl PhfHash for i64impl PhfHash for boolimpl PhfHash for charimpl PhfHash for [u8; 1]impl PhfHash for [u8; 2]impl PhfHash for [u8; 3]impl PhfHash for [u8; 4]impl PhfHash for [u8; 5]impl PhfHash for [u8; 6]impl PhfHash for [u8; 7]impl PhfHash for [u8; 8]impl PhfHash for [u8; 9]impl PhfHash for [u8; 10]impl PhfHash for [u8; 11]impl PhfHash for [u8; 12]impl PhfHash for [u8; 13]impl PhfHash for [u8; 14]impl PhfHash for [u8; 15]impl PhfHash for [u8; 16]impl PhfHash for [u8; 17]impl PhfHash for [u8; 18]impl PhfHash for [u8; 19]impl PhfHash for [u8; 20]impl PhfHash for [u8; 21]impl PhfHash for [u8; 22]impl PhfHash for [u8; 23]impl PhfHash for [u8; 24]impl PhfHash for [u8; 25]impl PhfHash for [u8; 26]impl PhfHash for [u8; 27]impl PhfHash for [u8; 28]impl PhfHash for [u8; 29]impl PhfHash for [u8; 30]impl PhfHash for [u8; 31]impl PhfHash for [u8; 32]