Ownership & Borrowing
Rust's signature feature: a single owner for every value and borrowing with & — memory safety.
Simple enough for a 5-year-old to understand
Ownership: every value has an owner
In Rust, assigning a String to another variable MOVES ownership; the old one can no longer be used. This rule ensures memory safety without a garbage collector.
fn main() { let s1 = String::from("Alex"); let s2 = s1; println!("{}", s2);}