| 14 | const MAX_KEYS: usize = 10; |
| 15 | |
| 16 | pub struct Node<K, V> { |
| 17 | pub keys: Vec<K>, |
| 18 | pub values: Vec<Option<V>>, // Option for handling deletion in COW |
| 19 | pub children: Vec<Box<Node<K, V>>>, // Using Box for heap allocation |
| 20 | pub max_keys: usize, // Maximum number of keys a node can hold |
| 21 | pub node_type: NodeType, |
| 22 | } |
| 23 | |
| 24 | impl<K, V> Node<K, V> |
| 25 | where |
nothing calls this directly
no outgoing calls
no test coverage detected