Closed
Description
What problem does this solve or what need does it fill?
I can get values from TypeIdMap
like this:
map.get(&TypeId::of::<MyType>());
map.remove(TypeId::of::<MyType>());
But it's not very ergonomic and requires importing TypeId
.
What solution would you like?
Since we already have an alias with faster hasher, I'd suggest to create an extension trait to allow the following:
map.get_type:<MyType>();
map.remove_type:<MyType>();
And maybe for other similar methods.