pub type AnyMap = Map<dyn Any>;
Expand description
The most common type of Map
: just using Any
; [Map]<dyn [Any]>
.
Why is this a separate type alias rather than a default value for Map<A>
?
Map::new()
doesn’t seem to be happy to infer that it should go with the default
value. It’s a bit sad, really. Ah well, I guess this approach will do.
Aliased Type§
struct AnyMap { /* private fields */ }