Skip to main content

check_style

Function check_style 

Source
pub fn check_style(specification: &str) -> Result<(), String>
Expand description

Whether a +-combined style specification names only styles that exist.

Shared by help_template’s own tags and by every other place a spec names a style — logo "…" style="cyan+bold" — so that one vocabulary is checked one way and a spec is refused where it is written rather than rendered without the colour it asked for.