Skip to main content

Children

Type Alias Children 

Source
pub type Children = BTreeMap<String, NodeData, SyncBumpArena>;
Expand description

Branch node — a sorted map of child key to child data.

Each entry represents one child of a graph node. The key is the child’s name within the parent; the value is the child’s NodeData (value + timestamp). BTreeMap is used to ensure deterministic iteration order, which is important for consistent checksums across distributed peers.

On native targets, the BTreeMap uses SyncBumpArena for arena allocation — O(1) allocation via bump pointer, O(chunks) drop instead of O(entries). On WASM, the global allocator is used (no std::sync).

Aliased Type§

pub struct Children { /* private fields */ }