Iterator over key-value pairs in the B+ tree using the leaf linked list.
| 12 | |
| 13 | /// Iterator over key-value pairs in the B+ tree using the leaf linked list. |
| 14 | pub struct ItemIterator<'a, K, V> { |
| 15 | tree: &'a BPlusTreeMap<K, V>, |
| 16 | current_leaf_id: Option<NodeId>, |
| 17 | pub current_leaf_ref: Option<&'a LeafNode<K, V>>, // CACHED leaf reference |
| 18 | current_leaf_index: usize, |
| 19 | end_key: Option<&'a K>, |
| 20 | end_bound_key: Option<K>, |
| 21 | end_inclusive: bool, |
| 22 | } |
| 23 | |
| 24 | /// Fast iterator over key-value pairs using unsafe arena access for better performance. |
| 25 | pub struct FastItemIterator<'a, K, V> { |
nothing calls this directly
no outgoing calls
no test coverage detected