pub trait FastHash: BuildHasherExt {
type Hash: PrimInt;
type Seed: Default + Copy;
// Required method
fn hash_with_seed<T: AsRef<[u8]>>(bytes: T, seed: Self::Seed) -> Self::Hash;
// Provided method
fn hash<T: AsRef<[u8]>>(bytes: T) -> Self::Hash { ... }
}
Expand description
Fast non-cryptographic hash functions
Required Associated Types§
Required Methods§
Provided Methods§
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.