Skip to main content

parse_layout_margin_left

Function parse_layout_margin_left 

Source
pub fn parse_layout_margin_left<'a>(
    input: &'a str,
) -> Result<LayoutMarginLeft, CssPixelValueParseError<'a>>
Expand description

Parses a LayoutMarginLeft attribute from a &str

ยงExample

assert_eq!(parse_layout_margin_left("5px"), Ok(LayoutMarginLeft { inner: PixelValue::px(5.0) }));