# 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. |
||
|---|---|---|
| .. | ||
| default.rs | ||
| lib.rs | ||
| map.rs | ||
| once.rs | ||
| parallel_queue.rs | ||
| wgpu_wrapper.rs | ||