trpl-zh-cn/src/ch04-00-understanding-ownership.md

7 lines
513 B
Markdown
Raw Normal View History

2017-02-14 22:42:54 +08:00
# 认识所有权
2018-12-01 21:13:43 +08:00
> [ch04-00-understanding-ownership.md](https://github.com/rust-lang/book/blob/master/src/ch04-00-understanding-ownership.md)
2017-02-14 22:42:54 +08:00
> <br>
2018-12-01 21:13:43 +08:00
> commit 1fedfc4b96c2017f64ecfcf41a0a07e2e815f24f
2017-02-14 22:42:54 +08:00
所有权(系统)是 Rust 最独特的功能,其令 Rust 无需垃圾回收garbage collector即可保障内存安全。因此理解 Rust 中所有权如何工作是十分重要的。本章我们将讲到所有权以及相关功能借用、slice 以及 Rust 如何在内存中布局数据。