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

Method leaf_sizes

rust/src/validation.rs:293–297  ·  view source on GitHub ↗

Returns the sizes of all leaf nodes (for testing/debugging).

(&self)

Source from the content-addressed store, hash-verified

291
292 /// Returns the sizes of all leaf nodes (for testing/debugging).
293 pub fn leaf_sizes(&self) -> Vec<usize> {
294 let mut sizes = Vec::new();
295 self.collect_leaf_sizes(&self.root, &mut sizes);
296 sizes
297 }
298
299 /// Prints the node chain for debugging.
300 pub fn print_node_chain(&self) {

Calls 1

collect_leaf_sizesMethod · 0.80