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

Method gets

src/darkbird/storage.rs:228–238  ·  view source on GitHub ↗
(&self, list: Vec<&K>)

Source from the content-addressed store, hash-verified

226 /// gets documents
227 #[inline]
228 pub fn gets(&self, list: Vec<&K>) -> Vec<Ref<K, Doc>> {
229 let mut result = Vec::with_capacity(list.len());
230
231 list.iter().for_each(|key| {
232 if let Some(r) = self.collection.get(key) {
233 result.push(r);
234 }
235 });
236
237 result
238 }
239
240 /// gets documents
241 #[inline]

Callers

nothing calls this directly

Calls 3

lenMethod · 0.80
iterMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected