Skip to main content

parse_layout_margin_right

Function parse_layout_margin_right 

Source
pub fn parse_layout_margin_right(
    input: &str,
) -> Result<LayoutMarginRight, CssPixelValueParseError<'_>>
Expand description

Parses a LayoutMarginRight attribute from a &str

§Example

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

§Errors

Returns an error if input is not a valid CSS value for this property.