hash_iter

Struct DoubleHashHasher

Source
pub struct DoubleHashHasher<H1 = Xxh3Builder, H2 = Xxh3Builder> { /* private fields */ }
Expand description

Enhanced double hashing hasher.

Emits an iterator (for a given input key) over hash values generated using enhanced double hashing.

Implementations§

Source§

impl DoubleHashHasher<Xxh3Builder, Xxh3Builder>

Source

pub fn new() -> Self

Constructs a new double hasher using default hash builders.

Source§

impl<H1, H2> DoubleHashHasher<H1, H2>

Source

pub fn with_hash_builders( hash_builder1: H1, hash_builder2: H2, n: usize, ) -> Self

Trait Implementations§

Source§

impl<H1, H2> HashIterHasher<u64> for DoubleHashHasher<H1, H2>
where H1: BuildHasher, H2: BuildHasher,

Source§

fn hash_iter<K: Hash>(&self, key: &K, count: usize) -> impl Iterator<Item = u64>

Returns an iterator over count number of hash values generated using enhanced double hashing.

Auto Trait Implementations§

§

impl<H1, H2> Freeze for DoubleHashHasher<H1, H2>
where H1: Freeze, H2: Freeze,

§

impl<H1, H2> RefUnwindSafe for DoubleHashHasher<H1, H2>

§

impl<H1, H2> Send for DoubleHashHasher<H1, H2>
where H1: Send, H2: Send,

§

impl<H1, H2> Sync for DoubleHashHasher<H1, H2>
where H1: Sync, H2: Sync,

§

impl<H1, H2> Unpin for DoubleHashHasher<H1, H2>
where H1: Unpin, H2: Unpin,

§

impl<H1, H2> UnwindSafe for DoubleHashHasher<H1, H2>
where H1: UnwindSafe, H2: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.