MCPcopy Create free account
hub / github.com/csskit/csskit / get_value_extensions

Function get_value_extensions

crates/csskit_spec_generator/src/value_extensions.rs:7–13  ·  view source on GitHub ↗

Returns a map of spec names to property value extensions Each entry maps a property name to a string that will be appended to its grammar. For example, the sizing spec adds " | stretch | fit-content | contain" to width.

()

Source from the content-addressed store, hash-verified

5/// Each entry maps a property name to a string that will be appended to its grammar.
6/// For example, the sizing spec adds " | stretch | fit-content | contain" to width.
7pub fn get_value_extensions() -> HashMap<String, HashMap<String, String>> {
8 let toml_str = include_str!("../value_extensions.toml");
9 let parsed: HashMap<String, HashMap<String, String>> =
10 toml::from_str(toml_str).expect("Failed to parse value_extensions.toml");
11
12 parsed
13}

Callers 1

generate_spec_moduleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected