An article that I read recently stated that a struct that holds a Box<T>
as a field is not Copy
.
This confuses me, since I thought that any type whose size is known can be stored on the stack - and is therefore Copy
.
Isn't the Box
's size always the same? I thought that it was just a reference to a heap allocated memory - and does therefore have always the same size.