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

Method accept_from_left

rust/src/node.rs:478–481  ·  view source on GitHub ↗

Accept a borrowed key-value pair at the beginning (from left sibling)

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

Source from the content-addressed store, hash-verified

476
477 /// Accept a borrowed key-value pair at the beginning (from left sibling)
478 pub fn accept_from_left(&mut self, key: K, value: V) {
479 self.keys.insert(0, key);
480 self.values.insert(0, value);
481 }
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) {

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected