Module serializer

Source

Macrosยง

impl_tocss_for_float ๐Ÿ”’
impl_tocss_for_int ๐Ÿ”’

Structsยง

CssStringWriter
A fmt::Write adapter that escapes text for writing as a double-quoted CSS string. Quotes are not included.

Enumsยง

TokenSerializationType
A category of token. See the needs_separator_when_before method.

Traitsยง

ToCss
Trait for things the can serialize themselves in CSS syntax.

Functionsยง

char_escape ๐Ÿ”’
hex_escape ๐Ÿ”’
serialize_identifier
Write a CSS identifier, escaping characters as necessary.
serialize_name
Write a CSS name, like a custom property name.
serialize_string
Write a double-quoted CSS string token, escaping content as necessary.
serialize_unquoted_url ๐Ÿ”’
write_numeric ๐Ÿ”’