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

Method get_value

src/structures/mmap_tree/node.rs:243–248  ·  view source on GitHub ↗
(&self, key: K)

Source from the content-addressed store, hash-verified

241 }
242
243 pub fn get_value(&self, key: K) -> Option<V> {
244 match self.keys.binary_search(&key) {
245 Ok(idx) => self.values[idx].clone(),
246 Err(_) => None,
247 }
248 }
249}
250impl<K, V> Default for Node<K, V> {
251 fn default() -> Self {

Callers

nothing calls this directly

Calls 1

cloneMethod · 0.80

Tested by

no test coverage detected