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

Method quantized_at

nodedb-vector/src/codec_index/graph.rs:115–120  ·  view source on GitHub ↗

Return a reference to the quantized payload at `idx`, if present and not deleted.

(&self, idx: u32)

Source from the content-addressed store, hash-verified

113 /// Return a reference to the quantized payload at `idx`, if present and
114 /// not deleted.
115 pub fn quantized_at(&self, idx: u32) -> Option<&C::Quantized> {
116 self.nodes
117 .get(idx as usize)
118 .filter(|n| !n.deleted)
119 .map(|n| &n.quantized)
120 }
121
122 /// Return the neighbor slice for `idx` at `layer`.
123 pub fn neighbors_at(&self, idx: u32, layer: usize) -> &[u32] {

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected