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

8 lines
578 B
Markdown
Raw Normal View History

2017-02-14 22:42:54 +08:00
# 认识所有权
2021-06-03 12:26:20 +08:00
> [ch04-00-understanding-ownership.md](https://github.com/rust-lang/book/blob/main/src/ch04-00-understanding-ownership.md)
2017-02-14 22:42:54 +08:00
> <br>
2022-02-06 23:46:50 +08:00
> commit a5e0c5b2c5f9054be3b961aea2c7edfeea591de8
2017-02-14 22:42:54 +08:00
2022-02-06 23:46:50 +08:00
所有权(系统)是 Rust 最为与众不同的特性,对语言的其他部分有着深刻含义。它让 Rust 无需垃圾回收garbage collector即可保障内存安全因此理解 Rust 中所有权如何工作是十分重要的。本章我们将讲到所有权以及相关功能借用borrowing、slice 以及 Rust 如何在内存中布局数据。