MCPcopy Create free account
hub / github.com/cosdata/cosdata / for_each

Method for_each

src/models/common.rs:726–731  ·  view source on GitHub ↗
(&self, mut f: F)

Source from the content-addressed store, hash-verified

724 }
725
726 pub fn for_each<F: FnMut(&K, &V)>(&self, mut f: F) {
727 for ht in &self.hash_table_list {
728 let ht = ht.lock().unwrap();
729 ht.iter().for_each(|(k, v)| f(k, v));
730 }
731 }
732}
733
734#[cfg(test)]

Calls 1

iterMethod · 0.45

Tested by

no test coverage detected