MCPcopy Create free account
hub / github.com/MegEngine/MegFlow / for_each

Method for_each

flow-rs/src/registry.rs:66–72  ·  view source on GitHub ↗
(&self, f: F)

Source from the content-addressed store, hash-verified

64 }
65
66 pub(crate) fn for_each<F>(&self, f: F)
67 where
68 F: FnMut(&T),
69 {
70 let registry = self.inner.read().unwrap();
71 registry.elems.values().map(|x| x.as_ref()).for_each(f);
72 }
73
74 pub(crate) fn to_vec(&self) -> Vec<Arc<T>> {
75 let mut registry = self.inner.write().unwrap();

Callers 6

feature_expandFunction · 0.80
initializeFunction · 0.80
finalizeFunction · 0.80
resetFunction · 0.80
startMethod · 0.80
global_res_implFunction · 0.80

Calls 1

as_refMethod · 0.80

Tested by

no test coverage detected