2.1 借用一个值
01-借用一个值 — Comprehensive Rust
1分钟内可阅读完
译文 · 基于 Comprehensive Rust
原文链接: https://google.github.io/comprehensive-rust/borrowing.html
本小节约需 1 小时 15 分钟。内容包括:
| 内容 | 时长 |
|---|---|
| 借用一个值 | 10 分钟 |
| 借用检查 | 10 分钟 |
| 借用错误 | 3 分钟 |
| 内部可变性 | 10 分钟 |
| 练习:巫师的物品栏 | 40 分钟 |
01-借用一个值 — Comprehensive Rust
02-借用检查 — Comprehensive Rust
03-借用错误 — Comprehensive Rust
内部可变性 — Comprehensive Rust
练习:巫师的物品栏 — Comprehensive Rust