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)
| 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. |