Skip main navigation

Get 30% off one whole year of Unlimited learning. Subscribe for just £249.99 £174.99. T&Cs apply

Macros

Discover how Rust macros generate code and help reduce repetition with reusable patterns.

Learn what macros are in Rust and how they can generate code from reusable patterns. Explore the basics of declarative macros and see how they can reduce repetition when ordinary functions are not enough.

This article is from the free online

Rust Programming: Build Fast, Memory-Safe Software with JetBrains

Created by
FutureLearn - Learning For Life