Module values

Source
Expand description

Helper types and traits for the handling of CSS values.

Modules§

specified
Helper types for the handling of specified values.

Macros§

impl_to_css_for_predefined_type 🔒
impl_to_typed_for_predefined_type 🔒

Structs§

Comma
Type used as the associated type in the OneOrMoreSeparated trait on a type to indicate that a serialized list of elements of this type is separated by commas.
CommaWithSpace
Type used as the associated type in the OneOrMoreSeparated trait on a type to indicate that a serialized list of elements of this type is separated by commas, but spaces without commas are also allowed when parsing.
CssWriter
A writer tailored for serialising CSS.
SequenceWriter
Convenience wrapper to serialise CSS values separated by a given string.
Space
Type used as the associated type in the OneOrMoreSeparated trait on a type to indicate that a serialized list of elements of this type is separated by spaces.

Enums§

TypedValue
A property-agnostic representation of a value, used by Typed OM.

Traits§

OneOrMoreSeparated
Marker trait on T to automatically implement ToCss for Vec when T’s are separated by some delimiter delim.
Separator
A trait satisfied by the types corresponding to separators.
ToCss
Serialises a value according to its CSS representation.
ToTyped
Reifies a value into its Typed OM representation.

Type Aliases§

CssString
String. The comments for the Gecko types explain the need for this abstraction.
CssStringWriter
String. The comments for the Gecko types explain the need for this abstraction.