Return a reference to the quantized payload at `idx`, if present and not deleted.
(&self, idx: u32)
| 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] { |