[−][src]Struct rendezvous_hash::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]
Trait Implementations
impl<N: Hash> NodeHasher<N> for DefaultNodeHasher
[src]
impl Default for DefaultNodeHasher
[src]
fn default() -> DefaultNodeHasher
[src]
impl Clone for DefaultNodeHasher
[src]
fn clone(&self) -> DefaultNodeHasher
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for DefaultNodeHasher
[src]
Auto Trait Implementations
impl Send for DefaultNodeHasher
impl Unpin for DefaultNodeHasher
impl Sync for DefaultNodeHasher
impl UnwindSafe for DefaultNodeHasher
impl RefUnwindSafe for DefaultNodeHasher
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,