pub trait SimdKey: Copy + Ord {
const BITS: u32;
// Required method
fn encode(self) -> u128;
}Expand description
Maps a key to an unsigned integer with exactly the same ordering.
BITS must be 8, 16, 32, 64, or 128. encode must be deterministic, fit in
BITS, and satisfy a.cmp(&b) == a.encode().cmp(&b.encode()).
Required Associated Constants§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".