Skip to main content

parse_layout_row_gap

Function parse_layout_row_gap 

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

Parses a LayoutRowGap attribute from a &str

§Example

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

§Errors

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