Function parse_style_border_top_width

Source
pub fn parse_style_border_top_width<'a>(
    input: &'a str,
) -> Result<StyleBorderTopWidth, PixelParseError<'a>>
Expand description

Parses a StyleBorderTopWidth attribute from a &str

ยงExample

assert_eq!(parse_style_border_top_width("5px"), Ok(StyleBorderTopWidth(PixelValue::px(5.0))));