MCPcopy Create free account
hub / github.com/carsonpo/haystackdb / Node

Class Node

src/structures/tree/node.rs:16–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14const MAX_KEYS: usize = 10;
15
16pub 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
24impl<K, V> Node<K, V>
25where

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected