Module parsers

Module parsers 

Source
Expand description

The Parse trait for CSS properties, and utilities for parsers.

Structs§

CommaSeparatedList
List separated by optional commas, with bounds for the required and maximum number of items.
CustomIdent
CSS Custom identifier.
NonNegative
Non-Negative number
NumberOptionalNumber
CSS number-optional-number
NumberOrPercentage
CSS number-percentage

Traits§

Parse
Trait to parse values using cssparser::Parser.
ParseValue
Trait used to parse attribute values concisely.

Functions§

finite_f32
Parses an f32 and ensures that it is not an infinity or NaN.
optional_comma
Consumes a comma if it exists, or does nothing.