Skip to content

Glossary: Rust Beyond the Basics

heap

The area of memory where values can live beyond a single function's local variables. `Box`, `String` and `Vec` keep their data there and free it when they go out of scope.

Where the book teaches it

Related terms

Boxsmart pointer