Update Ch21

This commit is contained in:
Peng Hailin,
2023-04-08 19:11:05 +08:00
parent 5d9971bf50
commit 1e07d49570
2 changed files with 8 additions and 2 deletions

View File

@@ -310,4 +310,8 @@ fn main() {
| `expr[..]`, `expr[a..]`, `expr[..b]`, `expr[a..b]` | 用到了 `Range``RangeFrom``RangeTo``RangeFull` 作为 “索引”的带有集合切片集合索引collection indexing pretending to be collection slicing, using `Range`, `RangeFrom`, `RangeTo`, or `RangeFull` as the "index" |
## 附录 C派生特质
**Appendix C: Derivable Traits**
本书的多个不同地方,咱们都曾讨论过 `derive` 属性,咱们可将其应用到结构体或枚举定义。