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

Method can_donate

rust/src/node.rs:441–443  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

439 /// Returns true if this leaf can donate a key to a sibling.
440 #[inline]
441 pub fn can_donate(&self) -> bool {
442 self.keys.len() > self.min_keys()
443 }
444
445 // ============================================================================
446 // OTHER HELPERS

Callers 2

borrow_lastMethod · 0.45
borrow_firstMethod · 0.45

Calls 2

min_keysMethod · 0.80
lenMethod · 0.45

Tested by

no test coverage detected