pcwalton / offset-allocator

A port of Sebastian Aaltonen's `OffsetAllocator` to Rust

Repository from Github https://github.compcwalton/offset-allocatorRepository from Github https://github.compcwalton/offset-allocator

impl Drop for Allocation

Gordon01 opened this issue · comments

Hi, thank you for the project.
It's inspiring for idiomatic Rust in meta-allocators space.

What do you think about Allocation to implement Drop and (probably) not to implement Clone?

I considered it, but I decided that this was best done with a higher-level library that wraps Allocation. Allocation is like *u8, which is Copy and Clone and doesn't implement Drop.