原书出处
Write Powerful Rust Macros
02 Declarative macros 语法、作用域与第一个分支
Since our matcher is empty, it will match any empty invocation of our macro. So when we called let empty: Vec<i32> = my_vec!(); in our main function, this is the matcher we ended up in, since (a) Rust goes through the matchers from top to bottom and (b) we did not pass anything in within the brackets.
We said that the content of the
原书定位详情
来源:a19c7933-4eda-4176-aebd-30fe7e1ad292
正文位置:extracted/Write Powerful Rust Macros/_epub-src/OEBPS/Text/chapter-2.xhtml#p24
EPUB SHA-256:68c7ed23324b44144895c3bb55f55731454da237867b66ec66ca6404f5b93661