Crate bomboni_macros

Crate bomboni_macros 

Source
Expand description

§bomboni_macros

Common macros for the Bomboni library.

This crate provides a collection of convenient macros.

Macros§

btree_map
A macro that creates a new BTreeMap instance with the given key-value pairs.
btree_map_into
A macro that creates a new BTreeMap instance with the given key-value pairs. The same as btree_map!, but converts keys and values to the target type.
btree_set
A macro that creates a new BTreeSet and inserts the given values into it.
btree_set_into
A macro that creates a new BTreeSet and inserts the given values into it. The same as btree_set!, but converts values to the target type.
count_repeating
A macro that counts the number of times a pattern is repeated.
hash_map
A macro that creates a new HashMap instance with the given key-value pairs.
hash_map_into
A macro that creates a new HashMap instance with the given key-value pairs. The same as hash_map!, but converts keys and values to the target type.
hash_set
A macro that creates a new HashSet and inserts the given values into it.
hash_set_into
A macro that creates a new HashSet and inserts the given values into it. The same as hash_set!, but converts values to the target type.
regex
A macro that creates a static regex::Regex instance from a string literal.
vec_deque
A macro that creates a new VecDeque instance with the given values.
vec_deque_into
A macro that creates a new VecDeque instance with the given values. The same as vec_deque!, but converts values to the target type.