[][src]Trait rendezvous_hash::NodeHasher

pub trait NodeHasher<N> {
    fn hash<T: Hash>(&self, node: &N, item: &T) -> u64;
}

This trait allows calculating the hash value of a node for a specific item.

Required methods

fn hash<T: Hash>(&self, node: &N, item: &T) -> u64

Returns the hash value for the combination of node and item.

Loading content...

Implementors

impl<N: Hash> NodeHasher<N> for DefaultNodeHasher[src]

Loading content...