Hasher

Trait Hasher 

Source
pub trait Hasher {
    // Required method
    fn hash<T: Hash + ?Sized>(&self, item: &T) -> usize;
}
Expand description

Trait for hash functions used in bloom filters

Required Methods§

Source

fn hash<T: Hash + ?Sized>(&self, item: &T) -> usize

Compute hash value for the given item

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§