Fast iterator over key-value pairs using unsafe arena access for better performance.
| 23 | |
| 24 | /// Fast iterator over key-value pairs using unsafe arena access for better performance. |
| 25 | pub struct FastItemIterator<'a, K, V> { |
| 26 | tree: &'a BPlusTreeMap<K, V>, |
| 27 | current_leaf_id: Option<NodeId>, |
| 28 | pub current_leaf_ref: Option<&'a LeafNode<K, V>>, // CACHED leaf reference |
| 29 | current_leaf_index: usize, |
| 30 | finished: bool, |
| 31 | } |
| 32 | |
| 33 | /// Iterator over keys in the B+ tree. |
| 34 | pub struct KeyIterator<'a, K, V> { |
nothing calls this directly
no outgoing calls
no test coverage detected