Expand description
This library contains common macros.
As this crate exports many different macros it is recommended
not to use #[macro_use] extern crate common_macros; but instead
to use the newer way of “just” importing the macros you need
(e.g. use common_macros::{hash_map, hash_set};).
Macros§
- b_
tree_ map - Macro to crate a
BTreeMapwith a number of key-value pairs in it. - b_
tree_ set - Macro to create a
BTreeSetwith a number of items in it. - const_
expr_ count - Counts the number of
;separated expressions passed in to the macro at compiler time. - hash_
map - Macro to crate a
HashMapwith a number of key-value pairs in it. - hash_
set - Macro to create a
HashSetwith a number of items in it. - lines
- Concats a number of string literals inserting a “\n” between each of them.