#Best AnyMap or TypeMap implementation?

5 messages · Page 1 of 1 (latest)

junior crag
#

The old typemap crate is very out of date. It provided a bag multiple types, backed by HashMap<TypeId, Any>. There are other crates that provide similar functionality like anymap, with varying quality. Any opinions on which one to choose?

unreal coral
#

http::Extensions obviously

#

To be honest, if this is just for internal use then it’s not hard to make your own type

junior crag
#

Oh, that one looks pretty well maintained... and gives me a less uncomfortable feeling than anymap10.