MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / get

Method get

nodedb-vector/src/sieve/collection.rs:76–78  ·  view source on GitHub ↗

Returns a shared reference to the subindex for `signature`, or `None`.

(&self, signature: &PredicateSignature)

Source from the content-addressed store, hash-verified

74
75 /// Returns a shared reference to the subindex for `signature`, or `None`.
76 pub fn get(&self, signature: &PredicateSignature) -> Option<&HnswIndex> {
77 self.subindices.get(signature)
78 }
79
80 /// Remove the subindex for `signature`, freeing its memory.
81 pub fn drop(&mut self, signature: &PredicateSignature) {

Callers 3

search_on_subindexFunction · 0.45
routeMethod · 0.45

Calls

no outgoing calls

Tested by 2

search_on_subindexFunction · 0.36