Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

理解所有权

所有权是 Rust 最独特的特性,对语言的其他部分也有深远影响。它让 Rust 无需垃圾回收器就能保证内存安全,因此理解所有权的工作方式非常重要。本章将讨论所有权及其相关特性:借用、切片,以及 Rust 如何在内存中布局数据。