Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

1.

Introduction

2. Macros, A Methodical Introduction The Little Book of Rust Macros


2.1. Syntax Extensions
Note: this is a work in progress.
2.1.1. Source Analysis
This book is an attempt to distil the Rust community's collective knowledge of Rust macros.
2.1.2. Macros in the AST
As such, both additions (in the form of pull requests) and requests (in the form of issues) are
2.1.3. Expansion welcome.

2.2. macro_rules! If you wish to contribute, see the GitHub repository.

2.3. Minutiae
Thanks
2.3.1. Captures and Expansion Re…

Thanks to the following for suggestions and corrections: IcyFoxy, Rym, TheMicroWorm,
2.3.2. Hygiene
Yurume, akavel, cmr, eddyb, ogham, and snake_case.
2.3.3. Non-Identifier Identifiers

2.3.4. Debugging License


2.3.5. Scoping This work is licensed under both the Creative Commons Attribution-ShareAlike 4.0
International License and the MIT license.
2.3.6. Import/Export

3. Macros, A Practical Introduction 2. Macros, A Methodical Introduction


4. Patterns

4.1. Callbacks

4.2. Incremental TT Munchers

4.3. Internal Rules

4.4. Push-Down Accumulation

4.5. Repetition Replacement

4.6. Trailing Separators


PDFmyURL converts web pages and even full websites to PDF easily and quickly.

You might also like