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

Method pop

rust/src/node.rs:283–289  ·  view source on GitHub ↗

Pop the last key-value pair.

(&mut self)

Source from the content-addressed store, hash-verified

281
282 /// Pop the last key-value pair.
283 pub fn pop(&mut self) -> Option<(K, V)> {
284 if let (Some(key), Some(value)) = (self.keys.pop(), self.values.pop()) {
285 Some((key, value))
286 } else {
287 None
288 }
289 }
290
291 /// Remove and return the first key-value pair.
292 pub fn remove_first(&mut self) -> Option<(K, V)> {

Callers 3

allocateMethod · 0.45
borrow_lastMethod · 0.45
split_dataMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected