Struct metrics::KeyHasher [−][src]
pub struct KeyHasher(_);
Expand description
Key-specific hashing algorithm.
Currently uses T1ha (Fast Positive Hash).
For any use-case within a metrics
-owned or adjacent crate, where hashing of a key is required,
this is the hasher that will be used.
Trait Implementations
impl Hasher for KeyHasher
[src]
impl Hasher for KeyHasher
[src]fn write_u128(&mut self, i: u128)
1.26.0[src]
fn write_u128(&mut self, i: u128)
1.26.0[src]Writes a single u128
into this hasher.
fn write_usize(&mut self, i: usize)
1.3.0[src]
fn write_usize(&mut self, i: usize)
1.3.0[src]Writes a single usize
into this hasher.
fn write_i128(&mut self, i: i128)
1.26.0[src]
fn write_i128(&mut self, i: i128)
1.26.0[src]Writes a single i128
into this hasher.
fn write_isize(&mut self, i: isize)
1.3.0[src]
fn write_isize(&mut self, i: isize)
1.3.0[src]Writes a single isize
into this hasher.