pub trait PixelType: Pod {
const LAYOUT: SampleLayout;
}Expand description
Compile-time pixel type marker for zero-copy imgref / typed helpers.
Required Associated Constants§
Sourceconst LAYOUT: SampleLayout
const LAYOUT: SampleLayout
Expected SampleLayout for this Rust pixel struct.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".