pub fn parse_layout_max_width<'a>(
input: &'a str,
) -> Result<LayoutMaxWidth, PixelParseError<'a>>
Expand description
Parses a LayoutMaxWidth
attribute from a &str
ยงExample
assert_eq!(parse_layout_max_width("5px"), Ok(LayoutMaxWidth(PixelValue::px(5.0))));