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

Method default

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

Source from the content-addressed store, hash-verified

103}
104impl<K, V> Default for Node<K, V> {
105 fn default() -> Self {
106 Node {
107 keys: Vec::new(),
108 values: Vec::new(),
109 children: Vec::new(),
110 max_keys: 0, // Adjust this as necessary
111 node_type: NodeType::Leaf, // Or another appropriate default NodeType
112 }
113 }
114}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected