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

Method get_leaf_next

rust/src/get_operations.rs:244–252  ·  view source on GitHub ↗

Get the next pointer of a leaf node in the arena.

(&self, id: NodeId)

Source from the content-addressed store, hash-verified

242
243 /// Get the next pointer of a leaf node in the arena.
244 pub fn get_leaf_next(&self, id: NodeId) -> Option<NodeId> {
245 self.get_leaf(id).and_then(|leaf| {
246 if leaf.next == NULL_NODE {
247 None
248 } else {
249 Some(leaf.next)
250 }
251 })
252 }
253
254 /// Get a reference to a branch node in the arena.
255 #[inline]

Callers 1

test_leaf_linked_listFunction · 0.80

Calls 1

get_leafMethod · 0.80

Tested by 1

test_leaf_linked_listFunction · 0.64