The Rust Book #
Chapter 4 #
- The discussion of the stack and the heap is good, this kind of “low-level” thinking is something you never do in Python.
- Rust returns memory automatically once the variable that owns it goes out of scope. Very different to languages with automatic garbage collection (most modern languages). Known in C as Resource Acquisition Is Initialization (RAII).