pub trait PixelColor: Copy + PartialEq {
type Raw: RawData;
}
Expand description
Pixel color trait.
This trait is used to represent types that can be used in drawing methods.
See the module-level documentation for more details.
Required Associated Types§
Sourcetype Raw: RawData
type Raw: RawData
Raw data type.
Specifies the raw storage type that can be used to represent this color.
See the raw
module documentation for more details.
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.