MCPcopy Create free account
hub / github.com/hashintel/hash / extend

Method extend

libs/@local/graph/postgres-store/src/store/postgres/mod.rs:2420–2427  ·  view source on GitHub ↗
(&mut self, iter: I)

Source from the content-addressed store, hash-verified

2418 T: Eq + Hash + Clone,
2419{
2420 fn extend<I>(&mut self, iter: I)
2421 where
2422 I: IntoIterator<Item = T>,
2423 {
2424 for key in iter {
2425 *self.map.entry(key).or_insert(0) += 1;
2426 }
2427 }
2428}
2429
2430impl<T> FromIterator<T> for ResponseCountMap<T>

Callers 15

from_iterMethod · 0.45
web_policiesFunction · 0.45
create_entitiesMethod · 0.45
query_entity_subgraphMethod · 0.45
create_entity_typesMethod · 0.45
update_entity_typesMethod · 0.45

Calls 1

entryMethod · 0.80

Tested by

no test coverage detected