[][src]Function azul_css_parser::parse_layout_max_width

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

Parses a LayoutMaxWidth attribute from a &str

Example

assert_eq!(parse_layout_max_width("5px"), Ok(LayoutMaxWidth(PixelValue::px(5.0))));