Loading tutorials
String, and Vec, plus a general idea of the stack and heap.1 min readString, Vec, functions, and the difference between stack and heap data. This chapter focuses on how functions transfer or temporarily use ownership.1 min readString, Vec, references, and Cargo. A reference must never outlive the value it points to. A reference that outlives its value is a dangling reference. Rust rejects one at compile time instead of allowing use-after-free at runtime.1 min read