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