Jump to content

Ownership

From scratchpad

Ownership is Rust's core discipline for memory management. Each value has a single owner, and the Borrow checker enforces the rules at compile time, preventing whole classes of bugs.