4 ms·
It would be helpful to see an example from a real application, too.
by tedunangst 6y ago
It would be helpful to see an example from a real application, too.
- masklinn 6y agoA very large Vec<String> (say a few million non-empty strings) would do I'd guess, Rust would drop the Vec which would recursively drop each String.
- burpsnard 6y agoI start thinking about c++ 'placement new' and COBOL copy record structures. And aquire/release objects from resource pools that manage themselves. And message queue handlers. And pass-by-reference, and object pools..