2.1 数组
01-数组 — Comprehensive Rust
1分钟内可阅读完
译文 · 基于 Comprehensive Rust
原文链接: https://google.github.io/comprehensive-rust/tuples-and-arrays.html
本小节约需 35 分钟。内容包括:
| 内容 | 时长 |
|---|---|
| 数组 | 5 分钟 |
| 元组 | 5 分钟 |
| 数组迭代 | 3 分钟 |
| 模式与解构 | 5 分钟 |
| 练习:嵌套数组 | 15 分钟 |
- 我们已经看过 Rust 中原始类型的用法。现在该开始构建新的复合类型了。
01-数组 — Comprehensive Rust
02-元组 — Comprehensive Rust
03-数组迭代 — Comprehensive Rust
04-模式与解构 — Comprehensive Rust
练习:嵌套数组 — Comprehensive Rust