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

Method get

src/structures/metadata_index.rs:223–228  ·  view source on GitHub ↗
(&mut self, key: u128)

Source from the content-addressed store, hash-verified

221 }
222
223 pub fn get(&mut self, key: u128) -> Option<MetadataIndexItem> {
224 match self.tree.search(key) {
225 Ok(v) => v,
226 Err(_) => None,
227 }
228 }
229}

Callers 5

from_indexMethod · 0.45
insert_non_fullMethod · 0.45
search_nodeMethod · 0.45
splitMethod · 0.45
queryMethod · 0.45

Calls 1

searchMethod · 0.45

Tested by

no test coverage detected