pub trait ToRgb { // Required method fn to_rgb(&self) -> [u8; 3]; }
A type implementing ToRgb can be converted to a single color.
ToRgb
This is useful for rendering map tiles.