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

Method create_empty_root_leaf

rust/src/delete_operations.rs:160–163  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

158 /// Helper method to create empty root leaf
159 #[inline]
160 fn create_empty_root_leaf(&mut self) {
161 let empty_id = self.allocate_leaf(LeafNode::new(self.capacity));
162 self.root = NodeRef::Leaf(empty_id, PhantomData);
163 }
164
165 /// Helper to check if a node is underfull.
166 #[inline]

Callers 1

Calls 1

allocate_leafMethod · 0.80

Tested by

no test coverage detected