Skip to main content

Module data_type

Module data_type 

Source
Expand description

The 11 data types Lynx documents under https://lynxjs.org/api/css/data-type.html.

Each submodule maps one Lynx data type to a Rust type with a ToCss implementation. The set is intentionally narrow: Lynx does not expose <integer>, <image>, <position>, or <easing-function> as standalone data types; the equivalents live in crate::data_type_ext.

Structs§

ColorStop
A <color-stop>: a color and an optional position.
CssString
A CSS <string> value.
FitContent
<fit-content> — sizes the box to the content with an optional upper bound.
MaxContent
<max-content> — sizes the box to its maximum intrinsic content size.
Number
A CSS <number> value.
Percentage
A CSS <percentage> value.

Enums§

Angle
A CSS <angle> value.
CalcExpr
A calc() expression node.
Color
A CSS <color> value.
Gradient
A CSS <gradient> value.
Length
A CSS <length> value.
LengthPercentage
A CSS <length-percentage> value.
LinearDirection
The direction component of a linear-gradient.
NamedColor
A CSS named color.
RadialShape
The shape component of a radial-gradient.
StopPosition
Position of a ColorStop.
Time
A CSS <time> value.