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

Method get_mut

rust/src/node.rs:28–31  ·  view source on GitHub ↗
(&mut self, key: &K)

Source from the content-addressed store, hash-verified

26 /// Get a mutable reference to a value by key from this leaf node.
27 #[inline]
28 pub fn get_mut(&mut self, key: &K) -> Option<&mut V> {
29 let index = self.binary_search_keys(key).ok()?;
30 self.get_value_mut(index)
31 }
32
33 /// Returns the number of key-value pairs in this leaf.
34 #[inline]

Callers 4

get_value_mutMethod · 0.45
test_get_mutFunction · 0.45

Calls 2

binary_search_keysMethod · 0.80
get_value_mutMethod · 0.80

Tested by 3

test_get_mutFunction · 0.36