2.1 程序内存回顾
01-程序内存回顾 — Comprehensive Rust
1分钟内可阅读完
译文 · 基于 Comprehensive Rust
原文链接: https://google.github.io/comprehensive-rust/memory-management.html
本小节约需 1 小时。内容包括:
| 内容 | 时长 |
|---|---|
| 程序内存回顾 | 5 分钟 |
| 内存管理方式 | 10 分钟 |
| 所有权 | 5 分钟 |
| 移动语义 | 5 分钟 |
Clone | 2 分钟 |
| Copy 类型 | 5 分钟 |
Drop | 10 分钟 |
| 练习:构建器类型 | 20 分钟 |
01-程序内存回顾 — Comprehensive Rust
02-内存管理方式 — Comprehensive Rust
03-所有权 — Comprehensive Rust
04-移动语义 — Comprehensive Rust
05-Clone — Comprehensive Rust
06-Copy 类型 — Comprehensive Rust
07-Drop — Comprehensive Rust
练习:构建器类型 — Comprehensive Rust