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<'a> PhfHash for &'a str
impl<'a> PhfHash for &'a [u8]
impl PhfHash for str
impl PhfHash for [u8]
impl PhfHash for u8
impl PhfHash for i8
impl PhfHash for u16
impl PhfHash for i16
impl PhfHash for u32
impl PhfHash for i32
impl PhfHash for u64
impl PhfHash for i64
impl PhfHash for bool
impl PhfHash for char
impl 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]