pub fn rgb_color_to_hex(RgbColor: RgbColor) -> StringExpand description
Converts an RGB color to its rich text representation, like #fb4 or #c0ffee.
ยงExamples
let color = RgbColor(65, 65, 255);
assert_eq!(rgb_color_to_hex(color), "#4141ff");
let color = RgbColor(255, 0, 255);
assert_eq!(rgb_color_to_hex(color), "#f0f");