pub trait RgbColor: PixelColor {
const MAX_R: u8;
const MAX_G: u8;
const MAX_B: u8;
const BLACK: Self;
const RED: Self;
const GREEN: Self;
const BLUE: Self;
const YELLOW: Self;
const MAGENTA: Self;
const CYAN: Self;
const WHITE: Self;
// Required methods
fn r(&self) -> u8;
fn g(&self) -> u8;
fn b(&self) -> u8;
}Expand description
RGB color.
Required Associated Constants§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".