Skip to main content

parse_layout_margin_top

Function parse_layout_margin_top 

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

Parses a LayoutMarginTop attribute from a &str

ยงExample

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