4 ms·
Rust does not have the rule of five, and it does not really have copy/move constructors. defer does not get you the same benefits as a destructor because you c
by csb6 2y ago
Rust does not have the rule of five, and it does not really have copy/move constructors.
defer does not get you the same benefits as a destructor because you can easily forget to write a defer, while destructors are always called.