Function parse_layout_max_height

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

Parses a LayoutMaxHeight attribute from a &str

ยงExample

assert_eq!(parse_layout_max_height("5px"), Ok(LayoutMaxHeight(PixelValue::px(5.0))));