Skip to main content

parse_font_weight

Function parse_font_weight 

Source
pub fn parse_font_weight(
    input: &str,
) -> Result<StyleFontWeight, CssFontWeightParseError<'_>>
Expand description

ยงErrors

Returns an error if input is not a valid CSS font-weight value.