pub trait Packable:
Sealed
+ Copy
+ Ord
+ Debug {
const WIDTH: usize;
const LANES: usize = _;
// Required methods
fn to_u64(self) -> u64;
fn from_u64(value: u64) -> Self;
}Expand description
An unsigned integer type that can be bit packed.
Sealed, because the layout constants are only correct for the four widths that divide 1024 into
a whole number of lanes, and because every kernel here does its arithmetic in u64 and relies
on every implementor fitting in one.
Required Associated Constants§
Provided Associated Constants§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".