MCPcopy Create free account
hub / github.com/ciphermodelabs/ciphercore / get_node

Method get_node

ciphercore-base/src/custom_ops.rs:388–393  ·  view source on GitHub ↗

Panics if `node` is not in `node_mapping`

(&self, node: Node)

Source from the content-addressed store, hash-verified

386
387 /// Panics if `node` is not in `node_mapping`
388 pub fn get_node(&self, node: Node) -> Node {
389 self.node_mapping
390 .get(&node)
391 .expect("Node is not found in node_mapping")
392 .clone()
393 }
394
395 /// Panics if `old_graph` has already been inserted
396 pub fn insert_graph(&mut self, old_graph: Graph, new_graph: Graph) {

Callers 1

run_instantiation_passFunction · 0.45

Calls 2

cloneMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected