hash_iter

Trait HashIterHasher

Source
pub trait HashIterHasher<V> {
    // Required method
    fn hash_iter<K: Hash>(
        &self,
        key: &K,
        count: usize,
    ) -> impl Iterator<Item = V>;
}
Expand description

Provides an iterator over multiple hash values for a given key.

Required Methods§

Source

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

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

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