Function parse_layout_min_width

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

Parses a LayoutMinWidth attribute from a &str

ยงExample

assert_eq!(parse_layout_min_width("5px"), Ok(LayoutMinWidth(PixelValue::px(5.0))));