|
|
|
|
|
by jarrettc
4087 days ago
|
|
The author mentions that Rust's "Box type is an owning type" and compares Box to C++'s std::unique_ptr. Worth noting: Rust's most basic variable syntax provides unique_ptr-like behavior, so you usually don't need the Box type for this behavior. For example: https://gist.github.com/jarrett/fe3f24c301a586efd7c1 |
|