pub trait Color {
type ChannelType: Unsigned + Into<usize>;
const CHANNELS: u8;
}Expand description
Utility trait that retrieves metadata about all smart_leds_trait color types.
Required Associated Constants§
Sourceconst CHANNELS: u8
const CHANNELS: u8
The maximum channel number this color supports.
- For RGB (or any permutation thereof), this is 3.
- For RGBW, this is 4.
- For RGBCCT, this is 5.
- For CCT, this is 2.
Note that this channel count is used by users of ColorOrder to limit the channel number that’s passed into ColorOrder::get_channel_data.
Required Associated Types§
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.