[][src]Trait prehash::Prehasher

pub trait Prehasher {
    type Hash;
#[must_use]    pub fn prehash<T: Hash>(&self, value: T) -> Prehashed<T, Self::Hash>;
}

A convenience trait for producing Prehashed values from any hasher builder.

To take advantage of this convenience trait, simply write:

use prehash::Prehasher;

Associated Types

type Hash[src]

The type produced by hashing.

Loading content...

Required methods

#[must_use]pub fn prehash<T: Hash>(&self, value: T) -> Prehashed<T, Self::Hash>[src]

Create a prehashed value by hashing the specified value.

Loading content...

Implementors

impl<B: BuildHasher> Prehasher for B[src]

type Hash = u64

Loading content...