Rust 111 🦀 Advanced Macro Hygiene and TokenStream Manipulation
Macro hygiene is the property that makes a macro’s internal identifiers invisible to the code that invokes it. A macro_rules! macro that declares a local variable x does not collide with the caller’s x, and a procedural macro that generates a function named helper does not overwrite a function the user already defined. The mechanism…