1.
介绍
1.1.
安装
1.2.
Hello, World!
1.3.
Rust的设计
2.
Tutorial
3.
Rust基础
3.1.
变量绑定
3.2.
函数
3.3.
Primitive Types
3.4.
Comments
3.5.
`if`
3.6.
Loops
4.
Ownership & borrowing
4.1.
Ownership
4.2.
References & Borrowing
4.3.
Lifetimes
5.
Basic Data Types
5.1.
Structs
5.2.
Enums
6.
Crates & Modules
7.
Error Handling
8.
Basic Collections
8.1.
Vectors
8.2.
Strings
8.3.
`HashMap
`
9.
Traits
10.
Closures
11.
Iterators
12.
I/O
12.1.
`Read` & `Write`
12.2.
`std::fs`
12.3.
`std::path`
12.4.
`std::env`
13.
Testing
14.
Smart Pointers
14.1.
`Deref`
14.2.
`Deref` coercions
14.3.
`Box
`
14.4.
`Rc
`
15.
Concurrency
15.1.
Threads
15.2.
`Send` & `Sync`
15.3.
`Arc
`
15.4.
`Mutex
`
15.5.
`Channels`
16.
Unsafe Rust
16.1.
Raw Pointers
16.2.
transmute
17.
FFI
17.1.
Conditional Compilation
17.2.
Bindings to C
17.3.
Using Rust from Other Languages
17.4.
`static`
18.
Cargo
18.1.
Crates.io
19.
Advanced Type System Features
19.1.
Associated Types
19.2.
Trait Objects
19.3.
UFCS
19.4.
Coherence
20.
Interior mutability
20.1.
`Cell
`
20.2.
`RefCell
`
21.
Macros
22.
Nightly Rust
Rc<T>