Removes annotation of type T.
(&mut self)
| 87 | |
| 88 | /// Removes annotation of type T. |
| 89 | pub fn remove<T: Any>(&mut self) -> Option<Box<T>> { |
| 90 | let id = TypeId::of::<T>(); |
| 91 | self.map |
| 92 | .remove(&id) |
| 93 | .and_then(|d| d.value.downcast::<T>().ok()) |
| 94 | } |
| 95 | } |
no test coverage detected