]> git.proxmox.com Git - rustc.git/blame - src/doc/book/src/ch04-00-understanding-ownership.md
New upstream version 1.58.1+dfsg1
[rustc.git] / src / doc / book / src / ch04-00-understanding-ownership.md
CommitLineData
13cf67c4
XL
1# Understanding Ownership
2
3c0e092e
XL
3Ownership is Rust’s most unique feature and has deep implications for the rest
4of the language. It enables Rust to make memory safety guarantees without
5needing a garbage collector, so it’s important to understand how ownership
6works. In this chapter, we’ll talk about ownership as well as several related
7features: borrowing, slices, and how Rust lays data out in memory.