Struct jumphash::JumpHasher
[−]
[src]
pub struct JumpHasher { /* fields omitted */ }
Methods
impl JumpHasher
[src]
fn new() -> JumpHasher
Returns a non-deterministic JumpHasher
structure.
fn new_with_keys(k1: u64, k2: u64) -> JumpHasher
Returns a deterministic JumpHasher
structure, seeded with two 64-bit keys.
fn slot<T: Hash>(&self, key: &T, slot_count: u32) -> u32
Returns a slot for the key key
, out of slot_count
available slots.
Trait Implementations
impl Clone for JumpHasher
[src]
fn clone(&self) -> JumpHasher
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for JumpHasher
[src]
impl Debug for JumpHasher
[src]
impl Default for JumpHasher
[src]
fn default() -> JumpHasher
Returns a non-deterministic JumpHasher
structure.