Expand description
Re-exported macros from cmn providing access to common macros.
The macros
module contains functions for generating macros.
Macros for the cmn crate.
This module bundles all macros used across the cmn crate. These include macros for validating input, and macros for generating the Common struct.
ยงGeneric macros for the cmn crate.
This crate provides the following macros:
Macro | Description |
---|---|
cmn | The main macro for the cmn crate. It takes any number of arguments and parses them into a Rust value. |
cmn_assert | Checks if the given expression is true. |
cmn_contains | Checks if the given string contains the given substring. |
cmn_in_range | Checks if the given value is in the given range. |
cmn_join | Joins a vector of strings into a single string. |
cmn_map | Creates a new map of the given key-value pairs. |
cmn_max | Returns the maximum of the given values. |
cmn_min | Returns the minimum of the given values. |
cmn_parse | Parses the given input into a Rust value. |
cmn_print_vec | Prints a vector of elements to the console. |
cmn_print | Prints the arguments to the console. |
cmn_split | Splits a string into a vector of words. |
cmn_to_num | Converts the given string to a number. |
cmn_vec | Creates a new vector of the given elements. |