原书出处
Write Powerful Rust Macros
08 Builder with attributes 键值写法和惰性回退
Eager and lazy evaluations are two approaches to writing code. Eager evaluation means the code you write will be invoked when it is encountered. Lazy evaluation means that evaluation is postponed until it proves necessary. In listing 8.10, unwrap_or_else is lazy because the closure that creates the default TokenStream will only be called if we end up in the unwrap_or_else call.
If every field has a rename attribute,
原书定位详情
来源:a19c7933-4eda-4176-aebd-30fe7e1ad292
正文位置:extracted/Write Powerful Rust Macros/_epub-src/OEBPS/Text/chapter-8.xhtml#p60
EPUB SHA-256:68c7ed23324b44144895c3bb55f55731454da237867b66ec66ca6404f5b93661