Module traits

Source
Expand description

Traits for parsing and serializing CSS.

Traits§

AtRuleParser
A trait to provide parsing of custom at-rules.
IntoOwned
A trait for things that can be cloned with a new lifetime.
IsCompatible
A trait for values that can check if they are compatible with browser targets.
Map
A trait for values that can be mapped by applying a function.
Op
A trait for values that support binary operations.
Parse
Trait for things that can be parsed from CSS syntax.
ParseWithOptions
Trait for things that can be parsed from CSS syntax and require ParserOptions.
Sign
A trait for values that can return a sign.
ToCss
Trait for things the can serialize themselves in CSS syntax.
TryMap
A trait for values that can potentially be mapped.
TryOp
A trait for values that potentially support a binary operation (e.g. if they have the same unit).
TrySign
A trait for values that can potentially return a sign.
Zero
A trait for values that can be zero.

Derive Macros§

IntoOwned