Crate common_macros

Source
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§

  • Macro to crate a BTreeMap with a number of key-value pairs in it.
  • Macro to create a BTreeSet with a number of items in it.
  • Counts the number of ; separated expressions passed in to the macro at compiler time.
  • Macro to crate a HashMap with a number of key-value pairs in it.
  • Macro to create a HashSet with a number of items in it.
  • Concats a number of string literals inserting a “\n” between each of them.