I'm new to Rust and I'm trying to understand when a Box should be used instead of a regular reference.
All the examples I can find show how to use a Box, but none of them explain in what situation you should use them over regular & references.
I'm new to Rust and I'm trying to understand when a Box should be used instead of a regular reference.
All the examples I can find show how to use a Box, but none of them explain in what situation you should use them over regular & references.