fitzgen / bumpalo

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

Add an `into_bump_slice_mut` method for Vec? #64

Closed TheDan64 closed 4 years ago

TheDan64 commented 4 years ago

If I understand correctly, two Vecs from the same Bump have separate allocations, correct? It seems like you should be able to consume them into distinct mutable slices, just like you can do currently do immutably with into_bump_slice.

fitzgen commented 4 years ago

This should be possible, yeah. Would you like to send a PR?

TheDan64 commented 4 years ago

Sure! Thanks!