x-i18n: generated_at: “2026-03-01T13:38:28Z” model: gemini-3-flash-preview provider: google-gemini-cli source_hash: c928725db99b50317a78423e90e790868e7efa4ffb87c62062b71ad6f3b5e59f source_path: ch04-00-understanding-ownership.md workflow: 16
理解所有权 (Understanding Ownership)
Understanding Ownership
Ownership is Rust’s most unique feature and has deep implications for the rest of the language. It enables Rust to make memory safety guarantees without needing a garbage collector, so it’s important to understand how ownership works. In this chapter, we’ll talk about ownership as well as several related features: borrowing, slices, and how Rust lays data out in memory.
所有权 (Ownership) 是 Rust 最独特的功能,对语言的其余部分有着深远的影响。它使 Rust 能够在不需要垃圾回收器的情况下做出内存安全保证,因此了解所有权的工作原理非常重要。在本章中,我们将讨论所有权以及几个相关功能:借用 (borrowing)、切片 (slices) 以及 Rust 如何在内存中布局数据。