Struct rustc_ap_rustc_arena::DropArena [−][src]
pub struct DropArena { /* fields omitted */ }
Expand description
An arena which can be used to allocate any type.
Safety
Allocating in this arena is unsafe since the type system
doesn’t know which types it contains. In order to
allocate safely, you must store a PhantomData<T>
alongside this arena for each type T
you allocate.
Implementations
pub unsafe fn alloc_from_iter<T, I>(&self, iter: I) -> &mut [T] where
T: Send,
I: IntoIterator<Item = T>,
[src]Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for DropArena
impl UnwindSafe for DropArena