...

/

Dynamically Sized Types

Dynamically Sized Types

We'll cover the following...

When you create a new value in Rust, it lives in a part of memory called the stack. It’s called a stack because it gets built up from the bottom to the top, like a stack of boxes. And just like a stack of boxes, it’s easy to add things and take things off the top. The stack turns out to be a great place to store a lot of data in Rust.

However, there’s a limitation with Rust’s stack. Each one of those boxes has to be a statically sized ...