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

Method search

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

Source from the content-addressed store, hash-verified

173 }
174
175 pub fn search(&mut self, key: K) -> Result<Option<V>, io::Error> {
176 self.search_node(self.storage_manager.root_offset(), key)
177 }
178
179 fn search_node(&mut self, node_offset: usize, key: K) -> Result<Option<V>, io::Error> {
180 // println!("Searching for key: {} at offset: {}", key, node_offset);

Callers

nothing calls this directly

Calls 2

root_offsetMethod · 0.80
search_nodeMethod · 0.45

Tested by

no test coverage detected