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

Method clone

src/structures/tree/node.rs:49–61  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

47 }
48
49 pub fn clone(&self) -> Self {
50 Node {
51 keys: self.keys.clone(),
52 values: self.values.clone(),
53 children: self
54 .children
55 .iter()
56 .map(|c| Box::new((**c).clone()))
57 .collect(),
58 max_keys: self.max_keys,
59 node_type: self.node_type.clone(),
60 }
61 }
62
63 pub fn split(&mut self) -> Result<(K, Node<K, V>), io::Error> {
64 match self.node_type {

Callers 15

mainFunction · 0.80
with_active_namespacesFunction · 0.80
mainFunction · 0.80
get_indicesMethod · 0.80
unionMethod · 0.80
from_indexMethod · 0.80
evaluateMethod · 0.80
insert_non_fullMethod · 0.80
search_nodeMethod · 0.80
get_range_nodeMethod · 0.80
batch_insertMethod · 0.80

Calls

no outgoing calls

Tested by 3

test_store_and_load_nodeFunction · 0.64