MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / material_scopes

Function material_scopes

crates/openshell-server/src/provider_refresh.rs:616–626  ·  view source on GitHub ↗
(material: &HashMap<String, String>)

Source from the content-addressed store, hash-verified

614}
615
616pub 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
628pub fn parse_material_i64(
629 material: &HashMap<String, String>,

Callers 2

refresh_scopesFunction · 0.85

Calls 2

material_valueFunction · 0.85
is_emptyMethod · 0.45

Tested by

no test coverage detected