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.
()
| 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. |
| 7 | pub 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 | } |
no outgoing calls
no test coverage detected