[][src]Crate common_macros

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 BTreeMap with a number of key-value pairs in it.

b_tree_set

Macro to create a BTreeSet with 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 HashMap with a number of key-value pairs in it.

hash_set

Macro to create a HashSet with a number of items in it.

lines

Concats a number of string literals inserting a "\n" between each of them.