Closed NOBLES5E closed 3 years ago
In latest Rust nightly we can allocate with custom allocator (for example https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html#method.new_in).
It will be great for bumpalo to provide the ability to use this. To achieve this, the &Bump needs to implement std::alloc::AllocRef.
&Bump
std::alloc::AllocRef
I am in favor of this, but I do not have time to implement it myself right now. Happy to review a PR.
In latest Rust nightly we can allocate with custom allocator (for example https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html#method.new_in).
It will be great for bumpalo to provide the ability to use this. To achieve this, the
&Bump
needs to implementstd::alloc::AllocRef
.