Trait NthHash

Source
pub trait NthHash {
    // Required method
    fn nth_hash<T: Hash + ?Sized>(&self, data: &T, nth: usize) -> u64;
}
Expand description

Hash function for bloom filters.

Required Methods§

Source

fn nth_hash<T: Hash + ?Sized>(&self, data: &T, nth: usize) -> u64

Calculates the nth hash value of data.

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§