From 67b6b8f06ab8732211f950e10aa95077eceb1cc9 Mon Sep 17 00:00:00 2001 From: "Peng Hailin," Date: Thu, 13 Apr 2023 21:14:21 +0800 Subject: [PATCH] Update Ch10 --- src/Ch21_Appendix.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Ch21_Appendix.md b/src/Ch21_Appendix.md index 56d3c5f..639c25d 100644 --- a/src/Ch21_Appendix.md +++ b/src/Ch21_Appendix.md @@ -798,3 +798,6 @@ a property called *coherence*,参见 [在类型上实现某个特质](Ch10_Gen the orphan rule, 参见 [在类型上实现某个特质](Ch10_Generic_Types_Traits_and_Lifetimes.md#在类型上实现某个特质)。 +- `impl Trait` 语法 + +在函数参数清单中,将特质用作参数类型注解的语法。参见:[作为参数的特质](Ch10_Generic_Types_Traits_and_Lifetimes.md#作为参数的特质)