Trait phf_shared::PhfHash [−][src]
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, { ... } }
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]
impl PhfHash for String
impl PhfHash for Vec<u8>
[src]
impl PhfHash for Vec<u8>
impl<'a> PhfHash for &'a str
[src]
impl<'a> PhfHash for &'a str
impl<'a> PhfHash for &'a [u8]
[src]
impl<'a> PhfHash for &'a [u8]
impl PhfHash for str
[src]
impl PhfHash for str
impl PhfHash for [u8]
[src]
impl PhfHash for [u8]
impl<S> PhfHash for UniCase<S> where
UniCase<S>: Hash,
[src]
impl<S> PhfHash for UniCase<S> where
UniCase<S>: Hash,
impl PhfHash for u8
[src]
impl PhfHash for u8
impl PhfHash for i8
[src]
impl PhfHash for i8
impl PhfHash for u16
[src]
impl PhfHash for u16
impl PhfHash for i16
[src]
impl PhfHash for i16
impl PhfHash for u32
[src]
impl PhfHash for u32
impl PhfHash for i32
[src]
impl PhfHash for i32
impl PhfHash for u64
[src]
impl PhfHash for u64
impl PhfHash for i64
[src]
impl PhfHash for i64
impl PhfHash for bool
[src]
impl PhfHash for bool
impl PhfHash for char
[src]
impl PhfHash for char
impl PhfHash for [u8; 1]
[src]
impl PhfHash for [u8; 1]
impl PhfHash for [u8; 2]
[src]
impl PhfHash for [u8; 2]
impl PhfHash for [u8; 3]
[src]
impl PhfHash for [u8; 3]
impl PhfHash for [u8; 4]
[src]
impl PhfHash for [u8; 4]
impl PhfHash for [u8; 5]
[src]
impl PhfHash for [u8; 5]
impl PhfHash for [u8; 6]
[src]
impl PhfHash for [u8; 6]
impl PhfHash for [u8; 7]
[src]
impl PhfHash for [u8; 7]
impl PhfHash for [u8; 8]
[src]
impl PhfHash for [u8; 8]
impl PhfHash for [u8; 9]
[src]
impl PhfHash for [u8; 9]
impl PhfHash for [u8; 10]
[src]
impl PhfHash for [u8; 10]
impl PhfHash for [u8; 11]
[src]
impl PhfHash for [u8; 11]
impl PhfHash for [u8; 12]
[src]
impl PhfHash for [u8; 12]
impl PhfHash for [u8; 13]
[src]
impl PhfHash for [u8; 13]
impl PhfHash for [u8; 14]
[src]
impl PhfHash for [u8; 14]
impl PhfHash for [u8; 15]
[src]
impl PhfHash for [u8; 15]
impl PhfHash for [u8; 16]
[src]
impl PhfHash for [u8; 16]
impl PhfHash for [u8; 17]
[src]
impl PhfHash for [u8; 17]
impl PhfHash for [u8; 18]
[src]
impl PhfHash for [u8; 18]
impl PhfHash for [u8; 19]
[src]
impl PhfHash for [u8; 19]
impl PhfHash for [u8; 20]
[src]
impl PhfHash for [u8; 20]
impl PhfHash for [u8; 21]
[src]
impl PhfHash for [u8; 21]
impl PhfHash for [u8; 22]
[src]
impl PhfHash for [u8; 22]
impl PhfHash for [u8; 23]
[src]
impl PhfHash for [u8; 23]
impl PhfHash for [u8; 24]
[src]
impl PhfHash for [u8; 24]
impl PhfHash for [u8; 25]
[src]
impl PhfHash for [u8; 25]
impl PhfHash for [u8; 26]
[src]
impl PhfHash for [u8; 26]
impl PhfHash for [u8; 27]
[src]
impl PhfHash for [u8; 27]
impl PhfHash for [u8; 28]
[src]
impl PhfHash for [u8; 28]
impl PhfHash for [u8; 29]
[src]
impl PhfHash for [u8; 29]
impl PhfHash for [u8; 30]
[src]
impl PhfHash for [u8; 30]
impl PhfHash for [u8; 31]
[src]
impl PhfHash for [u8; 31]
impl PhfHash for [u8; 32]
[src]
impl PhfHash for [u8; 32]