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

Method new_leaf

src/structures/tree/node.rs:29–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27 V: Clone + TreeSerialization + TreeDeserialization + Display + Debug,
28{
29 pub fn new_leaf() -> Self {
30 Node {
31 keys: Vec::new(),
32 values: Vec::new(),
33 children: Vec::new(),
34 max_keys: MAX_KEYS, // Assuming a small number for testing purposes
35 node_type: NodeType::Leaf,
36 }
37 }
38
39 pub fn new_internal() -> Self {
40 Node {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected