Skip to main content

KeyHasher

Trait KeyHasher 

Source
pub trait KeyHasher<const K: usize> {
    // Required method
    fn hash(&self, key: &[u8; K]) -> u64;
}
Expand description

Hash strategy used by a fixed map.

Required Methods§

Source

fn hash(&self, key: &[u8; K]) -> u64

Hashes a fixed-size key to a 64-bit value.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<const K: usize> KeyHasher<K> for FastHasher