Get a mutable reference to a resource in the store. Returns `None` if the given resource does not exist.
(&mut self)
| 1106 | pub fn get<S: Send + 'static>(&self) -> &S { |
| 1107 | self.try_get().unwrap() |
| 1108 | } |
| 1109 | |
| 1110 | /// Get a mutable reference to a resource in the store. |
| 1111 | /// |
| 1112 | /// # Panics |
| 1113 | /// Panics if the given resource does not exist. |
| 1114 | pub fn get_mut<S: Send + 'static>(&mut self) -> &mut S { |
| 1115 | self.try_get_mut().unwrap() |
no test coverage detected