Macros for container literals with specific type.
use *;
#
The lit2 crate uses =>
syntax to separate the key and value for the
mapping macros. It is also possible to use the :
separator, but the keys cannot
be expressions.
Note that rust macros are flexible in which brackets you use for the invocation.
You can use them as hashmap!{}
or hashmap![]
or hashmap!()
.
Generic container macros already exist elsewhere, so those are not provided here at the moment.