Function parse_layout_margin_top

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

Parses a LayoutMarginTop attribute from a &str

ยงExample

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