MCPcopy Create free account
hub / github.com/PerroEngine/Perro / node

Method node

perro_editor/res/scripts/editor/main.rs:88–94  ·  view source on GitHub ↗
(&self, key: u32)

Source from the content-addressed store, hash-verified

86 }
87 }
88
89 fn node(&self, key: u32) -> Option<SceneNodeEntry> {
90 self.node_indices
91 .binary_search_by_key(&key, |(item_key, _)| *item_key)
92 .ok()
93 .and_then(|pos| self.doc.scene.nodes.get(self.node_indices[pos].1))
94 .cloned()
95 }
96}
97

Callers 1

cached_scene_nodeFunction · 0.45

Calls 2

okMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected