3 ms·
> Rust's lifetime and ownership system works neatly with pools and other special-purpose allocators How does that work? One of the primary benefits of using p
by moonchild 6y ago
> Rust's lifetime and ownership system works neatly with pools and other special-purpose allocators
How does that work? One of the primary benefits of using pools is that you can deallocate objects in batches (so the destructor for each individual object is a no-op). Can you say that the pool object outlives (or owns) all of the objects allocated from it?