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

Function copy_node_name

ciphercore-base/src/graphs.rs:4747–4752  ·  view source on GitHub ↗

Pass the node name of `in_node` to `out_node` if it is present.

(in_node: Node, out_node: Node)

Source from the content-addressed store, hash-verified

4745
4746// Pass the node name of `in_node` to `out_node` if it is present.
4747pub(crate) fn copy_node_name(in_node: Node, out_node: Node) -> Result<()> {
4748 if let Some(node_name) = in_node.get_name()? {
4749 out_node.set_name(&node_name)?;
4750 }
4751 Ok(())
4752}
4753
4754type WeakContextBodyPointer = Weak<AtomicRefCell<ContextBody>>;
4755

Callers 9

run_instantiation_passFunction · 0.85
share_inputFunction · 0.85
share_all_inputsFunction · 0.85
uniquify_prf_idFunction · 0.85
recursively_inline_graphFunction · 0.85
optimize_graph_constantsFunction · 0.85

Calls 2

get_nameMethod · 0.45
set_nameMethod · 0.45

Tested by

no test coverage detected