Hacker News new | ask | show | jobs
by 65536 2167 days ago
Also, there are a lot of uses of macro_rules! in the Rust compiler and standard library repository.

https://github.com/rust-lang/rust/search?q=macro_rules&type=

Looking at some of those and reading https://doc.rust-lang.org/rust-by-example/macros/syntax.html and https://doc.rust-lang.org/reference/macros-by-example.html can potentially be instructive.