2 ms·
Thank you! Yeah, something like bumpalo would work just fine right now but for the future this is a great interface: https://docs.rs/bumpalo/latest/bumpalo/#ni
by williamcotton 4y ago
Thank you! Yeah, something like bumpalo would work just fine right now but for the future this is a great interface:
https://docs.rs/bumpalo/latest/bumpalo/#nightly-rust-allocator_api-support https://docs.rs/bumpalo/latest/bumpalo/#nightly-rust-allocat...
use bumpalo::Bump;
let bump = Bump::new();
let mut v = Vec::new_in(&bump);
v.push(0);
v.push(1);
v.push(2);