Overload
Macros can be overloaded to accept different combinations of arguments.
In that regard, macro_rules!
can work similarly to a match block:
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
Macros can be overloaded to accept different combinations of arguments.
In that regard, macro_rules!
can work similarly to a match block: