My understanding is that Rust is, to be wildly inaccurate, kind of like a language without a heap. Normal languages manage stack memory without GC. Rust kind of does the same: When deleting a stack frame, Rust deletes the objects created when on that stack frame, except when a reference is returned by the scope corresponding to the frame, in which case the &quot;ownership&quot; of the heap object is passed to the frame under the deleted-to-be frame.<p>Sort of. Don&#x27;t cite me.