Module cmn_macros

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

MacroDescription
cmnThe main macro for the cmn crate. It takes any number of arguments and parses them into a Rust value.
cmn_assertChecks if the given expression is true.
cmn_containsChecks if the given string contains the given substring.
cmn_in_rangeChecks if the given value is in the given range.
cmn_joinJoins a vector of strings into a single string.
cmn_mapCreates a new map of the given key-value pairs.
cmn_maxReturns the maximum of the given values.
cmn_minReturns the minimum of the given values.
cmn_parseParses the given input into a Rust value.
cmn_print_vecPrints a vector of elements to the console.
cmn_printPrints the arguments to the console.
cmn_splitSplits a string into a vector of words.
cmn_to_numConverts the given string to a number.
cmn_vecCreates a new vector of the given elements.