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

Method iter_index

src/darkbird/database.rs:437–459  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

435
436 #[inline]
437 pub fn iter_index<K, Doc>(&self) -> Result<Iter<String, K>, SessionResult>
438 where
439 Doc: Serialize + DeserializeOwned + Clone + Send + 'static + Document,
440 K: Serialize
441 + DeserializeOwned
442 + PartialOrd
443 + Ord
444 + PartialEq
445 + Eq
446 + Hash
447 + Clone
448 + Send
449 + Sync
450 + 'static
451 {
452 match self.datastores.get::<Storage<K, Doc>>() {
453 None => Err(SessionResult::DataStoreNotFound),
454 Some(datastore) => {
455 let res = datastore.iter_index();
456 Ok(res)
457 }
458 }
459 }
460
461
462 #[inline]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected