MCPcopy Create free account
hub / github.com/docknetwork/crypto / add

Method add

test_utils/src/accumulators.rs:132–134  ·  view source on GitHub ↗
(&mut self, element: T)

Source from the content-addressed store, hash-verified

130
131impl<T: Clone + Hash + Eq> InitialElementsStore<T> for InMemoryInitialElements<T> {
132 fn add(&mut self, element: T) {
133 self.db.insert(element);
134 }
135
136 fn has(&self, element: &T) -> bool {
137 self.db.get(element).is_some()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected