Expand description
§mac
A collection of great and ubiqutitous macros.
Modules§
- Macros for conditional compilation.
- Macros for string formatting.
- Inspect Macros
- Pattern Matching macros.
- Macros for low-level memory manipulation.
- Macros useful when writing procedural syntax extensions.
- Macros for writing test suites.
Macros§
- Make a tuple of the addresses of some of a struct’s fields.
- Do-while loop.
- Call
span_erron anExtCtxtand returnDummyResult::any. ext_bail!if the condition$eis true.- Unwrap the
Option$e, orext_bail!. - Conditionally perform string formatting.
- Compile-time conditional expression.
- Evaluates an expression, prints a stringified version of the expression along with the evaluated value, and then returns that value.
- Compile-time matching on config variables.
- Returns true if an expression matches a pattern.
- Generate a test function
$namewhich asserts that$leftand$rightare equal. - Unwraps an
Optionor returns from the function with the specified return value.