MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / iter

Method iter

sdks/rust/src/client_cache.rs:445–448  ·  view source on GitHub ↗

Called by the autogenerated implementation of the [`crate::Table`] method of the same name.

(&self)

Source from the content-addressed store, hash-verified

443
444 /// Called by the autogenerated implementation of the [`crate::Table`] method of the same name.
445 pub fn iter(&self) -> impl Iterator<Item = Row> + use<Row> {
446 self.with_table_cache(|table| table.entries.values().map(|e| e.row.clone()).collect::<Vec<_>>())
447 .into_iter()
448 }
449
450 /// See [`DbContextImpl::queue_mutation`].
451 fn queue_mutation(&self, mutation: PendingMutation<Row::Module>) {

Callers

nothing calls this directly

Calls 5

with_table_cacheMethod · 0.80
into_iterMethod · 0.45
mapMethod · 0.45
valuesMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected