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

Method from_iter

crates/table/src/pointer_map.rs:339–345  ·  view source on GitHub ↗
(iter: T)

Source from the content-addressed store, hash-verified

337
338impl FromIterator<(RowHash, RowPointer)> for PointerMap {
339 fn from_iter<T: IntoIterator<Item = (RowHash, RowPointer)>>(iter: T) -> Self {
340 let mut map = PointerMap::default();
341 for (h, o) in iter {
342 let _ = map.insert(h, o);
343 }
344 map
345 }
346}
347
348#[cfg(test)]

Callers

nothing calls this directly

Calls 1

insertMethod · 0.65

Tested by

no test coverage detected