(&self, id: &Q)
| 47 | |
| 48 | impl<ID: Eq + Hash, T> Registry<ID, T> { |
| 49 | pub(crate) fn get<Q: ?Sized>(&self, id: &Q) -> Option<Arc<T>> |
| 50 | where |
| 51 | ID: Borrow<Q>, |
| 52 | Q: Hash + Eq, |
| 53 | { |
| 54 | let registry = self.inner.read().unwrap(); |
| 55 | registry.elems.get(id).cloned() |
| 56 | } |
| 57 | |
| 58 | pub(crate) fn insert<Q>(&self, id: Q, elem: T) |
| 59 | where |
no outgoing calls
no test coverage detected