# Objective Fix https://github.com/bevyengine/bevy/issues/19642 by enabling e.g. ``` map.get_type::<MyType>(); ``` in place of ``` map.get(&TypeId::of::<MyType>()); ``` ## Solution Add an extension trait `TypeIdMapExt` with `insert_type`, `get_type`, `get_type_mut` and `remove_type` counterparts for `insert`, `get`, `get_mut` and `remove`. ## Testing Doc test. |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||
| LICENSE-APACHE | ||
| LICENSE-MIT | ||
| README.md | ||