pub trait Sample: Sealed + Copy {
const FORMAT: SampleFormat;
}Expand description
A pixel sample type that can be read in bulk.
Sealed: the set is fixed by the format’s sampleFormat values, and adding
to it would mean adding to the format.
Required Associated Constants§
Sourceconst FORMAT: SampleFormat
const FORMAT: SampleFormat
The sampleFormat this type corresponds to.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".