(material: &HashMap<String, String>)
| 614 | } |
| 615 | |
| 616 | pub fn material_scopes(material: &HashMap<String, String>) -> Vec<String> { |
| 617 | material_value(material, &["scope", "scopes"]) |
| 618 | .map(|raw| { |
| 619 | raw.split(|ch: char| ch == ',' || ch.is_ascii_whitespace()) |
| 620 | .map(str::trim) |
| 621 | .filter(|scope| !scope.is_empty()) |
| 622 | .map(ToString::to_string) |
| 623 | .collect() |
| 624 | }) |
| 625 | .unwrap_or_default() |
| 626 | } |
| 627 | |
| 628 | pub fn parse_material_i64( |
| 629 | material: &HashMap<String, String>, |
no test coverage detected