欢迎来到第二天
Now that we have seen a fair amount of Rust, today will focus on Rust’s type system:
- Pattern matching: extracting data from structures.
- 方法:将函数与类型相关联。
- 特征:多个类型所共有的行为。
- 泛型:对其他类型进行类型参数化。
- 标准库类型和特征:探索 Rust 丰富的标准库。
时间表
In this session:
- Welcome (3 minutes)
- Pattern Matching (50 minutes)
- Methods and Traits (45 minutes)
- Generics (45 minutes)
Including 10 minute breaks, this session should take about 2 hours and 55 minutes