3 ms·
Closures are just memory leaks though.
Closures are just memory leaks though.
A closure ends up being an object with references and can be cleaned up just like any other object. Or so I thought. What am I missing?
I mean, you could say the exact same thing about objects..
Not in Rust.