[−][src]Function azul_css_parser::parse_layout_height
pub fn parse_layout_height<'a>(
input: &'a str
) -> Result<LayoutHeight, PixelParseError<'a>>
Parses a LayoutHeight
attribute from a &str
Example
assert_eq!(parse_layout_height("5px"), Ok(LayoutHeight(PixelValue::px(5.0))));