MCPcopy Create free account
hub / github.com/KentBeck/BPlusTree3 / insert_at_index

Method insert_at_index

rust/src/node.rs:353–356  ·  view source on GitHub ↗

Insert a key-value pair at the specified index.

(&mut self, index: usize, key: K, value: V)

Source from the content-addressed store, hash-verified

351
352 /// Insert a key-value pair at the specified index.
353 pub fn insert_at_index(&mut self, index: usize, key: K, value: V) {
354 self.keys.insert(index, key);
355 self.values.insert(index, value);
356 }
357
358 /// Split this leaf node, returning the new right node.
359 pub fn split(&mut self) -> LeafNode<K, V> {

Callers 2

insertMethod · 0.80
insert_into_leafMethod · 0.80

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected