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))));pub fn parse_layout_width<'a>(
input: &'a str,
) -> Result<LayoutWidth, PixelParseError<'a>>Parses a LayoutWidth attribute from a &str
assert_eq!(parse_layout_width("5px"), Ok(LayoutWidth(PixelValue::px(5.0))));