[][src]Function azul_css_parser::parse_layout_width

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

Parses a LayoutWidth attribute from a &str

Example

assert_eq!(parse_layout_width("5px"), Ok(LayoutWidth(PixelValue::px(5.0))));