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

Method insert

nodedb-vector/src/collection/codec_dispatch.rs:37–42  ·  view source on GitHub ↗

Forwarding `insert`.

(&mut self, id: u32, v: &[f32])

Source from the content-addressed store, hash-verified

35
36 /// Forwarding `insert`.
37 pub fn insert(&mut self, id: u32, v: &[f32]) {
38 match self {
39 Self::RaBitQ(idx) => idx.insert(id, v),
40 Self::Bbq(idx) => idx.insert(id, v),
41 }
42 }
43
44 /// Total nodes (including deleted).
45 pub fn len(&self) -> usize {

Callers 1

build_collection_codecFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected