(&self, f: F)
| 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(); |
no test coverage detected