MCPcopy Create free account
hub / github.com/GraphiteEditor/Graphite / child_path

Function child_path

document/graph-storage/src/from_runtime.rs:337–342  ·  view source on GitHub ↗
(parent_path: Option<&NodePath>, network_id: NetworkId, local_id: RuntimeNodeId)

Source from the content-addressed store, hash-verified

335}
336
337fn child_path(parent_path: Option<&NodePath>, network_id: NetworkId, local_id: RuntimeNodeId) -> NodePath {
338 match parent_path {
339 None => NodePath::root(local_id),
340 Some(parent) => NodePath::nested(parent, parent.local_id, network_id, local_id),
341 }
342}
343
344/// Where a node sits in both the storage tree (`network_id`, `parent_path`) and the runtime tree
345/// (`metadata_path`, `runtime_node_id`). `metadata_path` is the chain of runtime IDs from the root

Callers 4

convert_networkFunction · 0.85
write_scope_injectionsFunction · 0.85
convert_nodeFunction · 0.85
convert_inputFunction · 0.85

Calls 1

rootFunction · 0.85

Tested by

no test coverage detected