mirror of
https://github.com/gnu4cn/rust-lang-zh_CN.git
synced 2025-03-14 19:30:29 +08:00
Create Ch21
This commit is contained in:
parent
9dab028068
commit
b173eed045
16
src/Ch21_Appendix.md
Normal file
16
src/Ch21_Appendix.md
Normal file
@ -0,0 +1,16 @@
|
||||
# 附录
|
||||
|
||||
以下小节包含了在咱们的 Rust 路途中,会发现有用的一些参考资料。
|
||||
|
||||
|
||||
## 附录 A:关键字
|
||||
|
||||
以下清单包含了 Rust 语言当前或今后要用到的一些关键字。由此,他们便不能被用作标识符(除在 [“原始标识符”](#raw-identifiers) 小节中咱们将讨论的那些外)了。所谓标识符,是函数、变量、参数、结构体字段、模组、代码箱、常量、宏、静态值、属性、类型、特质或生命周期等的名字。
|
||||
|
||||
|
||||
### 当前在用的关键字
|
||||
|
||||
下面是当前在用关键字的清单,带有其作用描述。
|
||||
|
||||
- `as` - 执行原生强制转换,primitive casting,消除包含着某个项目的特定特质歧义,disambiguate the specific trait containing a item,或重命名 `use` 语句中的项目;
|
||||
- `async` - 返回一个 `Future` 类型值,而非阻塞当前线程;
|
@ -60,3 +60,5 @@
|
||||
- [先进特性](Ch19_Advanced_Features.md)
|
||||
|
||||
- [最后项目:构建一个多线程的 Web 服务器](Ch20_Final_Project_Building_a_Multithreaded_Web_Server.md)
|
||||
|
||||
- [附录](Ch21_Appendix.md)
|
||||
|
Loading…
Reference in New Issue
Block a user