Skip to main content

parse_hex_color

Function parse_hex_color 

Source
pub fn parse_hex_color(s: &str) -> Option<RGBColor>
Expand description

Parse a "#rrggbb" hex string into an RGBColor. Returns None when the string is not in the expected format so callers can log and skip rather than hard-failing.