Type Alias EndingShape

Source
pub type EndingShape = EndingShape<NonNegativeLength, NonNegativeLengthPercentage>;
Expand description

A specified ending shape.

Aliased Type§

#[repr(C, u8)]
pub enum EndingShape { Circle(GenericCircle<NonNegative<Length>>), Ellipse(GenericEllipse<NonNegative<LengthPercentage>>), }

Variants§

§

Circle(GenericCircle<NonNegative<Length>>)

A circular gradient.

§

Ellipse(GenericEllipse<NonNegative<LengthPercentage>>)

An elliptic gradient.

Implementations§

Source§

impl EndingShape

Source

fn parse<'i, 't>( context: &ParserContext<'_>, input: &mut Parser<'i, 't>, compat_mode: GradientCompatMode, ) -> Result<Self, ParseError<'i>>