Skip to main content

parse_color_token

Function parse_color_token 

Source
pub fn parse_color_token(token: &str) -> Option<StyleColor>
Expand description

Tries to parse token as a color: single letter, full name, or #RRGGBB hex.

Returns None for unrecognised tokens.