[][src]Struct rendezvous_hash::DefaultNodeHasher

pub struct DefaultNodeHasher(_);

The default NodeHasher implementation.

This uses DefaultHasher to hash nodes and items. DefaultHasher is provided by Rust standard library.

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 std::collections::hash_map::DefaultHasher;

let mut hasher = DefaultHasher::new();
item.hash(&mut hasher);
node.hash(&mut hasher);
hasher.finish()

Methods

impl DefaultNodeHasher[src]

pub fn new() -> Self[src]

Makes a new DefaultNodeHasher instance.

Trait Implementations

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

impl Default for DefaultNodeHasher[src]

impl Clone for DefaultNodeHasher[src]

impl Debug for DefaultNodeHasher[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]