Get an immutable reference to a resource in the store. Returns `None` if the given resource does not exist.
(&self)
| 1097 | /// store. |
| 1098 | pub fn contains<S: Send + 'static>(&self) -> bool { |
| 1099 | self.0.contains_key(&TypeId::of::<S>()) |
| 1100 | } |
| 1101 | |
| 1102 | /// Get an immutable reference to a resource in the store. |
| 1103 | /// |
| 1104 | /// # Panics |
| 1105 | /// Panics if the given resource does not exist. |
| 1106 | pub fn get<S: Send + 'static>(&self) -> &S { |
no test coverage detected