MCPcopy Create free account
hub / github.com/RetypeOS/parcode / children

Method children

src/reader.rs:893–899  ·  view source on GitHub ↗

Returns a list of all direct child nodes. This allows manual traversal of the dependency graph (e.g., iterating over specific shards). Note: This does not deserialize the children, only loads their metadata (offsets).

(&self)

Source from the content-addressed store, hash-verified

891 /// This allows manual traversal of the dependency graph (e.g., iterating over specific shards).
892 /// Note: This does not deserialize the children, only loads their metadata (offsets).
893 pub fn children(&self) -> Result<Vec<Self>> {
894 let mut list = Vec::with_capacity(self.child_count as usize);
895 for i in 0..self.child_count {
896 list.push(self.get_child_by_index(i as usize)?);
897 }
898 Ok(list)
899 }
900
901 /// Standard single-threaded deserialization.
902 /// Use this for leaf nodes or simple structs that fit in memory.

Callers 12

get_lazyMethod · 0.80
loadMethod · 0.80
newMethod · 0.80
ensure_shard_loadedMethod · 0.80
from_nodeMethod · 0.80
getMethod · 0.80
nextMethod · 0.80
inspect_nodeMethod · 0.80
test_nested_structuresFunction · 0.80

Calls 1

get_child_by_indexMethod · 0.80

Tested by 3

inspect_nodeMethod · 0.64
test_nested_structuresFunction · 0.64