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

Method extend

crates/data-structures/src/small_map.rs:193–197  ·  view source on GitHub ↗
(&mut self, iter: T)

Source from the content-addressed store, hash-verified

191
192impl<K: Eq + Hash, V, const N: usize, const M: usize> Extend<(K, V)> for SmallHashMap<K, V, N, M> {
193 fn extend<T: IntoIterator<Item = (K, V)>>(&mut self, iter: T) {
194 for (k, v) in iter {
195 self.insert(k, v);
196 }
197 }
198}
199
200#[cfg(test)]

Callers 2

convert_to_largeMethod · 0.45
extend_clearFunction · 0.45

Calls 1

insertMethod · 0.65

Tested by

no test coverage detected