原书出处
Write Powerful Rust Macros
09 Writing an infrastructure DSL 解析原始资源语法
positive numbers, so i is not required.
And because memory and time can be larger than 255 (the maximum value of u8), u16 is next in line, which will stop illegal values above 65,535. A further improvement to error handling would be to add additional checks on top of what syn and the compiler are doing for us. For example, in the time branch, we would check that the value is <= 900.
原书定位详情
来源:a19c7933-4eda-4176-aebd-30fe7e1ad292
正文位置:extracted/Write Powerful Rust Macros/_epub-src/OEBPS/Text/chapter-9.xhtml#p60
EPUB SHA-256:68c7ed23324b44144895c3bb55f55731454da237867b66ec66ca6404f5b93661