Ownership — Rust's memory management model.
Three rules:
1fn main() {2 let s1 = String::from("hello");3 let s2 = s1; // s1 is moved to s24 // println!("{}", s1); // Error! s1 is no longer valid5 println!("{}", s2); // OK6}
Key concepts: