[](http://creativecommons.org/licenses/by-sa/4.0/)
本作品采用 [知識共享署名 - 相同方式共享 4.0 國際許可協議](https://creativecommons.org/licenses/by-sa/4.0/) 進行許可。
# Rust 官方教程 中文版
本文檔為 [*The Rust Programming Language*](https://doc.rust-lang.org/book/) 的中文翻譯。
歡迎在 [GitHub](https://github.com/KaiserY/rust-book-chinese) 上為本文檔做出貢獻。
### 版本
1.7.0-stable
### 相關資源
- GitHub: [https://github.com/KaiserY/rust-book-chinese](https://github.com/KaiserY/rust-book-chinese)
- GitBook: [https://www.gitbook.com/book/kaisery/rust-book-chinese](https://www.gitbook.com/book/kaisery/rust-book-chinese)
- Rust 中文社區: [https://rust-china.org](https://rust-china.org)
- QQ 群: 144605258
- QQ 2 群: 303838735
- 聊天頻道:[https://chat.rust-china.org/](https://chat.rust-china.org/)
- 前言
- 貢獻者
- 1.介紹
- 2.準備
- 3.學習 Rust
- 3.1.猜猜看
- 3.2.哲學家就餐問題
- 3.3.其它語言中的 Rust
- 4.語法和語義
- 4.1.變量綁定
- 4.2.函數
- 4.3.原生類型
- 4.4.注釋
- 4.5.If語句
- 4.6.循環
- 4.7.所有權
- 4.8.引用和借用
- 4.9.生命周期
- 4.10.可變性
- 4.11.結構體
- 4.12.枚舉
- 4.13.匹配
- 4.14.模式
- 4.15.方法語法
- 4.16.Vectors
- 4.17.字符串
- 4.18.泛型
- 4.19.Traits
- 4.20.Drop
- 4.21.if let
- 4.22.trait 對象
- 4.23.閉包
- 4.24.通用函數調用語法
- 4.25.crate 和模塊
- 4.26.const和static
- 4.27.屬性
- 4.28.type別名
- 4.29.類型轉換
- 4.30.關聯類型
- 4.31.不定長類型
- 4.32.運算符和重載
- 4.33.Deref強制多態
- 4.34.宏
- 4.35.裸指針
- 4.36.不安全代碼
- 5.高效 Rust
- 5.1.棧和堆
- 5.2.測試
- 5.3.條件編譯
- 5.4.文檔
- 5.5.迭代器
- 5.6.并發
- 5.7.錯誤處理
- 5.8.選擇你的保證
- 5.9.外部函數接口
- 5.10.Borrow 和 AsRef
- 5.11.發布途徑
- 5.12.不使用標準庫
- 6.Rust 開發版
- 6.1.編譯器插件
- 6.2.內聯匯編
- 6.4.固有功能
- 6.5.語言項
- 6.6.鏈接進階
- 6.7.基準測試
- 6.8.裝箱語法和模式
- 6.9.切片模式
- 6.10.關聯常量
- 6.11.自定義內存分配器
- 7.詞匯表
- 8.語法索引
- 9.參考文獻
- 附錄:名詞中英文對照