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

Function get_object_value

crates/openshell-supervisor-network/src/l7/mod.rs:393–399  ·  view source on GitHub ↗
(val: &'a regorus::Value, key: &str)

Source from the content-addressed store, hash-verified

391}
392
393fn get_object_value<'a>(val: &'a regorus::Value, key: &str) -> Option<&'a regorus::Value> {
394 let key_val = regorus::Value::String(key.into());
395 match val {
396 regorus::Value::Object(map) => map.get(&key_val),
397 _ => None,
398 }
399}
400
401/// Check a glob pattern for obvious syntax issues.
402///

Callers 1

Calls 1

getMethod · 0.45

Tested by

no test coverage detected