MCPcopy Create free account
hub / github.com/KentBeck/BPlusTree3 / leaf_count

Method leaf_count

rust/src/tree_structure.rs:47–49  ·  view source on GitHub ↗

Returns the number of leaf nodes in the tree.

(&self)

Source from the content-addressed store, hash-verified

45
46 /// Returns the number of leaf nodes in the tree.
47 pub fn leaf_count(&self) -> usize {
48 self.leaf_count_recursive(&self.root)
49 }
50
51 /// Recursively count leaf nodes with proper arena access.
52 fn leaf_count_recursive(&self, node: &NodeRef<K, V>) -> usize {

Calls 1

leaf_count_recursiveMethod · 0.80