原书出处
Effective Rust 35 Specific Ways to Improve Your Rust Code (David Drysdale)
2 Chapter 2. Traits Item 10: Familiarize yourself with standard traits
efined types, using
derive macros. These derive macros generate code with the “obvious” implementation of the trait for that type (e.g., field-by-field comparison for Eq on a struct); this normally requires that all constituent parts also implement the trait. The auto-generated implementation is usually what you want, but there are occasional exceptions discussed in each trait’
s section that follo
原书定位详情
来源:a19c7933-4eda-4176-aebd-30fe7e1ad292
正文位置:extracted/Effective Rust 35 Specific Ways to Improve Your Rust Code (David Drysdale)/_epub-src/OEBPS/ch02.html#file_std-traits_md
EPUB SHA-256:523496927c4fd2d3fc11c9b81ad96b76201e66d746b6ac29d71d61d3517181c1