(self, default: impl FnOnce() -> Box<dyn Any + Send>)
| 1126 | |
| 1127 | /// Get a mutable reference to a resource in the store. |
| 1128 | /// |
| 1129 | /// Returns `None` if the given resource does not exist. |
| 1130 | pub fn try_get_mut<S: Send + 'static>(&mut self) -> Option<&mut S> { |
| 1131 | self.0 |
| 1132 | .get_mut(&TypeId::of::<S>()) |
| 1133 | .map(|s| s.downcast_mut().unwrap()) |
| 1134 | } |
| 1135 | } |
| 1136 |
nothing calls this directly
no test coverage detected