O'Reilly logo

Mastering Rust by Vesa Kaihlavirta

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Macro keywords

Let's start our journey of writing our own macros by checking out the list of different recognized keywords macro patterns may have:

  • block: This is a sequence of statements
  • expr: This is an expression
  • ident: This is an identifier
  • item: This is an item
  • meta: This is a meta item
  • pat: This is a pattern
  • path: This is a qualified name
  • stmt: This is a statement
  • tt: This is a token tree
  • ty: This is a type

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required