MCPcopy Create free account
hub / github.com/carsonpo/haystackdb / has_key

Method has_key

src/structures/mmap_tree.rs:195–197  ·  view source on GitHub ↗
(&mut self, key: K)

Source from the content-addressed store, hash-verified

193 }
194
195 pub fn has_key(&mut self, key: K) -> Result<bool, io::Error> {
196 self.has_key_node(self.storage_manager.root_offset(), key)
197 }
198
199 pub fn has_key_node(&mut self, node_offset: usize, key: K) -> Result<bool, io::Error> {
200 let node = self.storage_manager.load_node(node_offset)?;

Callers 2

has_been_committedMethod · 0.80
get_uncommittedMethod · 0.80

Calls 2

has_key_nodeMethod · 0.80
root_offsetMethod · 0.80

Tested by

no test coverage detected