The Rust Programming Language Forum
Why does rust need to know the size of types at compile time?
help
H2CO3
November 14, 2021, 4:13pm
2
Any time you want to copy (or move) it, for example. This includes returning something by value.
show post in topic
Related topics
Topic
Replies
Views
Activity
Why doesn't rust just heap allocate automatically?
19
4114
February 14, 2019
Requirement to know size at compile time
8
2673
January 15, 2021
I don't understand Box
36
4982
February 7, 2023
Understanding Box
help
20
1816
February 16, 2024
Why does Box<[u8]> occupy 16B?
help
3
1411
March 15, 2018