Rust Macros

Rust macros — macro_rules!, proc macros, derive macros, attribute macros, fragment specifiers, repetition, hygiene, cargo expand, when to use macros vs generics. Use when writing or debugging declarative or procedural macros, choosing between macros and other abstractions, understanding expansion errors, or generating repetitive code.

dawidpereira b0bb73b 3 files · 21.9 KB Updated

File contents

dawidpereira/rust-skills/tree/main/skills/rust-macros commit b0bb73be8b

Frequently asked questions

npx skillmds@latest add dawidpereira/rust-macros