ownership-borrowing
Installation
SKILL.md
Ownership & Borrowing Skill
Master Rust's revolutionary memory safety system without garbage collection.
Quick Start
The Three Rules of Ownership
// Rule 1: Each value has exactly ONE owner
let s1 = String::from("hello"); // s1 owns this String
// Rule 2: Only ONE owner at a time
let s2 = s1; // Ownership MOVES to s2
// println!("{}", s1); // ERROR: s1 no longer valid