Struct rendezvous_hash::DefaultNodeHasher
[−]
[src]
pub struct DefaultNodeHasher(_);
The default NodeHasher
implementation.
This uses SipHasher13
to hash nodes and items.
SipHasher13
is provided by siphash
crate.
To hash a combination of a node and an item,
DefaultNodeHasher
hashes the item at first,
then hashes the node,
and finally returns the resulting hash value
(as follows).
use siphasher::sip::SipHasher13; let mut hasher = SipHasher13::new(); item.hash(&mut hasher); node.hash(&mut hasher); hasher.finish()
Methods
impl DefaultNodeHasher
[src]
fn new() -> Self
Makes a new DefaultNodeHasher
instance.
Trait Implementations
impl Debug for DefaultNodeHasher
[src]
impl Clone for DefaultNodeHasher
[src]
fn clone(&self) -> DefaultNodeHasher
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