Crate cssparser_macros [] [src]

Functions

assert_ascii_lowercase

Find a #[cssparser__assert_ascii_lowercase__data(string = "…", string = "…")] attribute, and panic if any string contains ASCII uppercase letters.

max_len

Find a #[cssparser__max_len__data(string = "…", string = "…")] attribute, panic if any string contains ASCII uppercase letters, emit a MAX_LENGTH constant with the length of the longest string.

phf_map

On struct $Name($ValueType), add a new static method fn map() -> &'static ::phf::Map<&'static str, $ValueType>. The map’s content is given as: #[cssparser__phf_map__kv_pairs(key = "…", value = "…", key = "…", value = "…")]. Keys are ASCII-lowercased.