Type Alias RayFunction

Source
pub type RayFunction = GenericRayFunction<Angle, Position>;
Expand description

The specified value of ray() function.

Aliased Type§

#[repr(C)]
pub struct RayFunction { pub angle: Angle, pub size: RaySize, pub contain: bool, pub position: GenericPositionOrAuto<GenericPosition<PositionComponent<HorizontalPositionKeyword>, PositionComponent<VerticalPositionKeyword>>>, }

Fields§

§angle: Angle

The bearing angle with 0deg pointing up and positive angles representing clockwise rotation.

§size: RaySize

Decide the path length used when offset-distance is expressed as a percentage.

§contain: bool

Clamp offset-distance so that the box is entirely contained within the path.

§position: GenericPositionOrAuto<GenericPosition<PositionComponent<HorizontalPositionKeyword>, PositionComponent<VerticalPositionKeyword>>>

The “at ” part. If omitted, we use auto to represent it.

Implementations§

Source§

impl RayFunction

Source

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

Parse the inner arguments of a ray function.

Trait Implementations§

Source§

impl Parse for RayFunction

Source§

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

Parse a value of this type. Read more