Function parse_layout_width

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

Parses a LayoutWidth attribute from a &str

ยงExample

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