MCPcopy Create free account
hub / github.com/Rustixir/darkbird / remove

Method remove

src/darkbird/index/hash.rs:53–60  ·  view source on GitHub ↗
(&self, doc: &Doc)

Source from the content-addressed store, hash-verified

51 /// remove entry
52 #[inline]
53 pub fn remove<Doc>(&self, doc: &Doc)
54 where
55 Doc: Document,
56 {
57 doc.extract().iter().for_each(|index_key| {
58 self.hash.remove(index_key);
59 });
60 }
61
62 /// lookup by index_key
63 #[inline]

Callers

nothing calls this directly

Calls 2

iterMethod · 0.45
extractMethod · 0.45

Tested by

no test coverage detected