[][src]Function azul_css_parser::parse_style_border_top_width

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

Parses a StyleBorderTopWidth attribute from a &str

Example

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