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

Method default

src/structures/mmap_tree/node.rs:251–262  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

249}
250impl<K, V> Default for Node<K, V> {
251 fn default() -> Self {
252 Node {
253 keys: Vec::new(),
254 values: Vec::new(),
255 children: Vec::new(),
256 max_keys: 0, // Adjust this as necessary
257 node_type: NodeType::Leaf, // Or another appropriate default NodeType
258 offset: 0,
259 is_root: false,
260 parent_offset: None,
261 }
262 }
263}
264
265fn serialize_length(buffer: &mut Vec<u8>, length: u32) -> &Vec<u8> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected