Function style::values::specified::basic_shape::parse_shape_or_box

source ยท
fn parse_shape_or_box<'i, 't, R, ReferenceBox>(
    context: &ParserContext<'_>,
    input: &mut Parser<'i, 't>,
    to_shape: impl FnOnce(Box<BasicShape>, ReferenceBox) -> R,
    to_reference_box: impl FnOnce(ReferenceBox) -> R,
    flags: AllowedBasicShapes,
) -> Result<R, ParseError<'i>>
where ReferenceBox: Default + Parse,
Expand description

A helper for both clip-path and shape-outside parsing of shapes.