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

Method remove_item

rust/src/delete_operations.rs:61–63  ·  view source on GitHub ↗

Remove a key from the tree, returning an error if the key doesn't exist. This is equivalent to Python's `del tree[key]`.

(&mut self, key: &K)

Source from the content-addressed store, hash-verified

59 /// Remove a key from the tree, returning an error if the key doesn't exist.
60 /// This is equivalent to Python's `del tree[key]`.
61 pub fn remove_item(&mut self, key: &K) -> ModifyResult<V> {
62 self.remove(key).ok_or(BPlusTreeError::KeyNotFound)
63 }
64
65 /// Recursively remove a key with proper arena access.
66 #[inline]

Calls 1

removeMethod · 0.45