MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / get

Method get

native/watchos/src/models.rs:584–589  ·  view source on GitHub ↗
(&self, key: &str)

Source from the content-addressed store, hash-verified

582
583impl JVal {
584 pub fn get(&self, key: &str) -> Option<&JVal> {
585 match self {
586 JVal::Obj(v) => v.iter().find(|(k, _)| k == key).map(|(_, v)| v),
587 _ => None,
588 }
589 }
590 pub fn arr(&self) -> Option<&[JVal]> {
591 if let JVal::Arr(a) = self { Some(a.as_slice()) } else { None }
592 }

Callers 15

getFunction · 0.45
parse_glbFunction · 0.45
parse_nodeFunction · 0.45
parse_primitiveFunction · 0.45
read_joint_indicesFunction · 0.45
resolve_textureFunction · 0.45
read_f32_vecFunction · 0.45
read_index_vecFunction · 0.45
peekMethod · 0.45
bloom_scene_attach_modelFunction · 0.45
spawn_node_subtreeFunction · 0.45
anim_track_countFunction · 0.45

Calls 1

iterMethod · 0.80

Tested by

no test coverage detected