[−][src]Trait phf_shared::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: Hasher>(&self, state: &mut H)
Feeds the value into the state given, updating the hasher as necessary.
Provided methods
fn phf_hash_slice<H: Hasher>(data: &[Self], state: &mut H) where
Self: Sized,
Self: Sized,
Feeds a slice of this type into the state provided.
Implementations on Foreign Types
impl PhfHash for String
[src]
fn phf_hash<H: Hasher>(&self, state: &mut H)
[src]
fn phf_hash_slice<H: Hasher>(data: &[Self], state: &mut H) where
Self: Sized,
[src]
Self: Sized,
impl PhfHash for Vec<u8>
[src]
fn phf_hash<H: Hasher>(&self, state: &mut H)
[src]
fn phf_hash_slice<H: Hasher>(data: &[Self], state: &mut H) where
Self: Sized,
[src]
Self: Sized,
impl<'a> PhfHash for &'a str
[src]
fn phf_hash<H: Hasher>(&self, state: &mut H)
[src]
fn phf_hash_slice<H: Hasher>(data: &[Self], state: &mut H) where
Self: Sized,
[src]
Self: Sized,
impl<'a> PhfHash for &'a [u8]
[src]
fn phf_hash<H: Hasher>(&self, state: &mut H)
[src]
fn phf_hash_slice<H: Hasher>(data: &[Self], state: &mut H) where
Self: Sized,
[src]
Self: Sized,
impl PhfHash for str
[src]
fn phf_hash<H: Hasher>(&self, state: &mut H)
[src]
fn phf_hash_slice<H: Hasher>(data: &[Self], state: &mut H) where
Self: Sized,
[src]
Self: Sized,
impl PhfHash for [u8]
[src]
fn phf_hash<H: Hasher>(&self, state: &mut H)
[src]
fn phf_hash_slice<H: Hasher>(data: &[Self], state: &mut H) where
Self: Sized,
[src]
Self: Sized,
impl PhfHash for u8
[src]
fn phf_hash<H: Hasher>(&self, state: &mut H)
[src]
fn phf_hash_slice<H: Hasher>(data: &[Self], state: &mut H) where
Self: Sized,
[src]
Self: Sized,
impl PhfHash for i8
[src]
fn phf_hash<H: Hasher>(&self, state: &mut H)
[src]
fn phf_hash_slice<H: Hasher>(data: &[Self], state: &mut H) where
Self: Sized,
[src]
Self: Sized,
impl PhfHash for u16
[src]
fn phf_hash<H: Hasher>(&self, state: &mut H)
[src]
fn phf_hash_slice<H: Hasher>(data: &[Self], state: &mut H) where
Self: Sized,
[src]
Self: Sized,
impl PhfHash for i16
[src]
fn phf_hash<H: Hasher>(&self, state: &mut H)
[src]
fn phf_hash_slice<H: Hasher>(data: &[Self], state: &mut H) where
Self: Sized,
[src]
Self: Sized,
impl PhfHash for u32
[src]
fn phf_hash<H: Hasher>(&self, state: &mut H)
[src]
fn phf_hash_slice<H: Hasher>(data: &[Self], state: &mut H) where
Self: Sized,
[src]
Self: Sized,
impl PhfHash for i32
[src]
fn phf_hash<H: Hasher>(&self, state: &mut H)
[src]
fn phf_hash_slice<H: Hasher>(data: &[Self], state: &mut H) where
Self: Sized,
[src]
Self: Sized,
impl PhfHash for u64
[src]
fn phf_hash<H: Hasher>(&self, state: &mut H)
[src]
fn phf_hash_slice<H: Hasher>(data: &[Self], state: &mut H) where
Self: Sized,
[src]
Self: Sized,
impl PhfHash for i64
[src]
fn phf_hash<H: Hasher>(&self, state: &mut H)
[src]
fn phf_hash_slice<H: Hasher>(data: &[Self], state: &mut H) where
Self: Sized,
[src]
Self: Sized,
impl PhfHash for bool
[src]
fn phf_hash<H: Hasher>(&self, state: &mut H)
[src]
fn phf_hash_slice<H: Hasher>(data: &[Self], state: &mut H) where
Self: Sized,
[src]
Self: Sized,
impl PhfHash for char
[src]
fn phf_hash<H: Hasher>(&self, state: &mut H)
[src]
fn phf_hash_slice<H: Hasher>(data: &[Self], state: &mut H) where
Self: Sized,
[src]
Self: Sized,
impl PhfHash for [u8; 1]
[src]
fn phf_hash<H: Hasher>(&self, state: &mut H)
[src]
fn phf_hash_slice<H: Hasher>(data: &[Self], state: &mut H) where
Self: Sized,
[src]
Self: Sized,
impl PhfHash for [u8; 2]
[src]
fn phf_hash<H: Hasher>(&self, state: &mut H)
[src]
fn phf_hash_slice<H: Hasher>(data: &[Self], state: &mut H) where
Self: Sized,
[src]
Self: Sized,
impl PhfHash for [u8; 3]
[src]
fn phf_hash<H: Hasher>(&self, state: &mut H)
[src]
fn phf_hash_slice<H: Hasher>(data: &[Self], state: &mut H) where
Self: Sized,
[src]
Self: Sized,
impl PhfHash for [u8; 4]
[src]
fn phf_hash<H: Hasher>(&self, state: &mut H)
[src]
fn phf_hash_slice<H: Hasher>(data: &[Self], state: &mut H) where
Self: Sized,
[src]
Self: Sized,
impl PhfHash for [u8; 5]
[src]
fn phf_hash<H: Hasher>(&self, state: &mut H)
[src]
fn phf_hash_slice<H: Hasher>(data: &[Self], state: &mut H) where
Self: Sized,
[src]
Self: Sized,
impl PhfHash for [u8; 6]
[src]
fn phf_hash<H: Hasher>(&self, state: &mut H)
[src]
fn phf_hash_slice<H: Hasher>(data: &[Self], state: &mut H) where
Self: Sized,
[src]
Self: Sized,
impl PhfHash for [u8; 7]
[src]
fn phf_hash<H: Hasher>(&self, state: &mut H)
[src]
fn phf_hash_slice<H: Hasher>(data: &[Self], state: &mut H) where
Self: Sized,
[src]
Self: Sized,
impl PhfHash for [u8; 8]
[src]
fn phf_hash<H: Hasher>(&self, state: &mut H)
[src]
fn phf_hash_slice<H: Hasher>(data: &[Self], state: &mut H) where
Self: Sized,
[src]
Self: Sized,
impl PhfHash for [u8; 9]
[src]
fn phf_hash<H: Hasher>(&self, state: &mut H)
[src]
fn phf_hash_slice<H: Hasher>(data: &[Self], state: &mut H) where
Self: Sized,
[src]
Self: Sized,
impl PhfHash for [u8; 10]
[src]
fn phf_hash<H: Hasher>(&self, state: &mut H)
[src]
fn phf_hash_slice<H: Hasher>(data: &[Self], state: &mut H) where
Self: Sized,
[src]
Self: Sized,
impl PhfHash for [u8; 11]
[src]
fn phf_hash<H: Hasher>(&self, state: &mut H)
[src]
fn phf_hash_slice<H: Hasher>(data: &[Self], state: &mut H) where
Self: Sized,
[src]
Self: Sized,
impl PhfHash for [u8; 12]
[src]
fn phf_hash<H: Hasher>(&self, state: &mut H)
[src]
fn phf_hash_slice<H: Hasher>(data: &[Self], state: &mut H) where
Self: Sized,
[src]
Self: Sized,
impl PhfHash for [u8; 13]
[src]
fn phf_hash<H: Hasher>(&self, state: &mut H)
[src]
fn phf_hash_slice<H: Hasher>(data: &[Self], state: &mut H) where
Self: Sized,
[src]
Self: Sized,
impl PhfHash for [u8; 14]
[src]
fn phf_hash<H: Hasher>(&self, state: &mut H)
[src]
fn phf_hash_slice<H: Hasher>(data: &[Self], state: &mut H) where
Self: Sized,
[src]
Self: Sized,
impl PhfHash for [u8; 15]
[src]
fn phf_hash<H: Hasher>(&self, state: &mut H)
[src]
fn phf_hash_slice<H: Hasher>(data: &[Self], state: &mut H) where
Self: Sized,
[src]
Self: Sized,
impl PhfHash for [u8; 16]
[src]
fn phf_hash<H: Hasher>(&self, state: &mut H)
[src]
fn phf_hash_slice<H: Hasher>(data: &[Self], state: &mut H) where
Self: Sized,
[src]
Self: Sized,
impl PhfHash for [u8; 17]
[src]
fn phf_hash<H: Hasher>(&self, state: &mut H)
[src]
fn phf_hash_slice<H: Hasher>(data: &[Self], state: &mut H) where
Self: Sized,
[src]
Self: Sized,
impl PhfHash for [u8; 18]
[src]
fn phf_hash<H: Hasher>(&self, state: &mut H)
[src]
fn phf_hash_slice<H: Hasher>(data: &[Self], state: &mut H) where
Self: Sized,
[src]
Self: Sized,
impl PhfHash for [u8; 19]
[src]
fn phf_hash<H: Hasher>(&self, state: &mut H)
[src]
fn phf_hash_slice<H: Hasher>(data: &[Self], state: &mut H) where
Self: Sized,
[src]
Self: Sized,
impl PhfHash for [u8; 20]
[src]
fn phf_hash<H: Hasher>(&self, state: &mut H)
[src]
fn phf_hash_slice<H: Hasher>(data: &[Self], state: &mut H) where
Self: Sized,
[src]
Self: Sized,
impl PhfHash for [u8; 21]
[src]
fn phf_hash<H: Hasher>(&self, state: &mut H)
[src]
fn phf_hash_slice<H: Hasher>(data: &[Self], state: &mut H) where
Self: Sized,
[src]
Self: Sized,
impl PhfHash for [u8; 22]
[src]
fn phf_hash<H: Hasher>(&self, state: &mut H)
[src]
fn phf_hash_slice<H: Hasher>(data: &[Self], state: &mut H) where
Self: Sized,
[src]
Self: Sized,
impl PhfHash for [u8; 23]
[src]
fn phf_hash<H: Hasher>(&self, state: &mut H)
[src]
fn phf_hash_slice<H: Hasher>(data: &[Self], state: &mut H) where
Self: Sized,
[src]
Self: Sized,
impl PhfHash for [u8; 24]
[src]
fn phf_hash<H: Hasher>(&self, state: &mut H)
[src]
fn phf_hash_slice<H: Hasher>(data: &[Self], state: &mut H) where
Self: Sized,
[src]
Self: Sized,
impl PhfHash for [u8; 25]
[src]
fn phf_hash<H: Hasher>(&self, state: &mut H)
[src]
fn phf_hash_slice<H: Hasher>(data: &[Self], state: &mut H) where
Self: Sized,
[src]
Self: Sized,
impl PhfHash for [u8; 26]
[src]
fn phf_hash<H: Hasher>(&self, state: &mut H)
[src]
fn phf_hash_slice<H: Hasher>(data: &[Self], state: &mut H) where
Self: Sized,
[src]
Self: Sized,
impl PhfHash for [u8; 27]
[src]
fn phf_hash<H: Hasher>(&self, state: &mut H)
[src]
fn phf_hash_slice<H: Hasher>(data: &[Self], state: &mut H) where
Self: Sized,
[src]
Self: Sized,
impl PhfHash for [u8; 28]
[src]
fn phf_hash<H: Hasher>(&self, state: &mut H)
[src]
fn phf_hash_slice<H: Hasher>(data: &[Self], state: &mut H) where
Self: Sized,
[src]
Self: Sized,
impl PhfHash for [u8; 29]
[src]
fn phf_hash<H: Hasher>(&self, state: &mut H)
[src]
fn phf_hash_slice<H: Hasher>(data: &[Self], state: &mut H) where
Self: Sized,
[src]
Self: Sized,
impl PhfHash for [u8; 30]
[src]
fn phf_hash<H: Hasher>(&self, state: &mut H)
[src]
fn phf_hash_slice<H: Hasher>(data: &[Self], state: &mut H) where
Self: Sized,
[src]
Self: Sized,
impl PhfHash for [u8; 31]
[src]
fn phf_hash<H: Hasher>(&self, state: &mut H)
[src]
fn phf_hash_slice<H: Hasher>(data: &[Self], state: &mut H) where
Self: Sized,
[src]
Self: Sized,
impl PhfHash for [u8; 32]
[src]
fn phf_hash<H: Hasher>(&self, state: &mut H)
[src]
fn phf_hash_slice<H: Hasher>(data: &[Self], state: &mut H) where
Self: Sized,
[src]
Self: Sized,