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

Method keys

crates/data-structures/src/small_map.rs:152–157  ·  view source on GitHub ↗

Returns an iterator over all the keys in the map.

(&self)

Source from the content-addressed store, hash-verified

150
151 /// Returns an iterator over all the keys in the map.
152 pub fn keys(&self) -> impl ExactSizeIterator<Item = &K> {
153 match self {
154 Self::Small(list) => Either::Left(list.iter().map(|(k, _)| k)),
155 Self::Large(map) => Either::Right(map.keys()),
156 }
157 }
158
159 /// Returns an iterator over all the values in the map.
160 pub fn values(&self) -> impl ExactSizeIterator<Item = &V> {

Callers 15

MessageItemFunction · 0.45
AppFunction · 0.45
MessageItemFunction · 0.45
parsePackageJsonFunction · 0.45
walkSuitesFunction · 0.45
failure_reasonMethod · 0.45
compare_tablesFunction · 0.45
mainFunction · 0.45
QuickstartLinksFunction · 0.45
reschema_tablesMethod · 0.45

Calls 2

iterMethod · 0.65
mapMethod · 0.45

Tested by 1