pub trait Key: Copy + Eq {
const VACANT: Self;
// Required method
fn hash(&self) -> u64;
}Expand description
A key a table can hold: its hash must be well mixed in the TOP bits.
Required Associated Constants§
Required 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.