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

Method accept_from_right

rust/src/node.rs:484–487  ·  view source on GitHub ↗

Accept a borrowed key-value pair at the end (from right sibling)

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

Source from the content-addressed store, hash-verified

482
483 /// Accept a borrowed key-value pair at the end (from right sibling)
484 pub fn accept_from_right(&mut self, key: K, value: V) {
485 self.keys.push(key);
486 self.values.push(value);
487 }
488
489 /// Merge all content from another leaf into this one, returning the other's next pointer
490 pub fn merge_from(&mut self, other: &mut LeafNode<K, V>) -> NodeId {

Calls

no outgoing calls

Tested by

no test coverage detected