fitzgen / bumpalo

A fast bump allocation arena for Rust
https://docs.rs/bumpalo
Apache License 2.0
1.35k stars 110 forks source link

Return `Bump` from collections #169

Open zetanumbers opened 2 years ago

zetanumbers commented 2 years ago

I would argue that it is our best to name methods like in allocator_api feature (Box::allocator, Box::into_inner_with_allocator, etc.)

fitzgen commented 2 years ago

Not sure it is worth copying more of std here, rather than just waiting for the allocator API to stabilize.

zetanumbers commented 2 years ago

This is mostly for ergonomics, for example to eliminate creation of arbitrary lifetimes for from_raw* functions.