Crate mac

source
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_err on an ExtCtxt and return DummyResult::any.
  • ext_bail! if the condition $e is true.
  • Unwrap the Option $e, or ext_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 $name which asserts that $left and $right are equal.
  • Unwraps an Option or returns from the function with the specified return value.