Skip to main content

mago_allocator/
vec.rs

1pub use allocator_api2::vec::*;
2
3/// A contiguous growable array whose elements live in an arena.
4///
5/// The allocator slot is fixed to `&'arena A`, so construct it with
6/// [`new_in`](allocator_api2::vec::Vec::new_in) (or `with_capacity_in`) and pass `&arena`.
7pub type Vec<'arena, T, A> = allocator_api2::vec::Vec<T, &'arena A>;