mago-allocator 1.40.1

Arena allocation for Mago: a unified `Arena` trait over thread-local and thread-safe bump allocators.
Documentation
1
2
3
4
5
/// A heap allocation living in an arena.
///
/// The allocator slot is fixed to `&'arena A`, so construct it with
/// [`new_in`](allocator_api2::boxed::Box::new_in) and pass `&arena`.
pub type Box<'arena, T, A> = allocator_api2::boxed::Box<T, &'arena A>;