pub trait Pack<P = u32> {
// Required methods
fn pack(&self) -> P;
fn unpack(from: P) -> Self;
}Expand description
packs and unpacks this pixel
note that unpack(pack(p)) may not equal p
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.