[][src]Trait phf::PhfHash

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.

Loading content...

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.

Loading content...

Implementations on Foreign Types

impl PhfHash for [u8; 2][src]

impl PhfHash for u32[src]

impl PhfHash for [u8; 21][src]

impl PhfHash for [u8; 12][src]

impl PhfHash for [u8; 4][src]

impl PhfHash for [u8; 30][src]

impl PhfHash for [u8; 16][src]

impl PhfHash for [u8; 3][src]

impl PhfHash for i32[src]

impl PhfHash for [u8][src]

impl PhfHash for [u8; 29][src]

impl PhfHash for [u8; 8][src]

impl PhfHash for [u8; 11][src]

impl PhfHash for [u8; 20][src]

impl PhfHash for u64[src]

impl PhfHash for [u8; 27][src]

impl PhfHash for [u8; 1][src]

impl PhfHash for i8[src]

impl PhfHash for i16[src]

impl PhfHash for str[src]

impl PhfHash for u128[src]

impl PhfHash for [u8; 22][src]

impl PhfHash for Vec<u8>[src]

impl PhfHash for char[src]

impl PhfHash for [u8; 14][src]

impl PhfHash for [u8; 19][src]

impl PhfHash for [u8; 17][src]

impl PhfHash for [u8; 28][src]

impl PhfHash for u16[src]

impl PhfHash for [u8; 25][src]

impl PhfHash for [u8; 24][src]

impl PhfHash for i128[src]

impl PhfHash for [u8; 15][src]

impl PhfHash for [u8; 26][src]

impl PhfHash for [u8; 9][src]

impl PhfHash for String[src]

impl PhfHash for [u8; 23][src]

impl PhfHash for bool[src]

impl PhfHash for [u8; 18][src]

impl PhfHash for [u8; 31][src]

impl<'a, T> PhfHash for &'a T where
    T: 'a + PhfHash + ?Sized
[src]

impl PhfHash for u8[src]

impl PhfHash for [u8; 13][src]

impl PhfHash for [u8; 5][src]

impl PhfHash for [u8; 6][src]

impl PhfHash for [u8; 7][src]

impl PhfHash for i64[src]

impl PhfHash for [u8; 32][src]

impl PhfHash for [u8; 10][src]

Loading content...

Implementors

Loading content...