Struct arena::DroplessArena [−][src]
pub struct DroplessArena { /* fields omitted */ }
Methods
impl DroplessArena
[src]
impl DroplessArena
pub fn new() -> DroplessArena
[src]
pub fn new() -> DroplessArena
pub fn in_arena<T: ?Sized>(&self, ptr: *const T) -> bool
[src]
pub fn in_arena<T: ?Sized>(&self, ptr: *const T) -> bool
pub fn alloc_raw(&self, bytes: usize, align: usize) -> &mut [u8]
[src]
pub fn alloc_raw(&self, bytes: usize, align: usize) -> &mut [u8]
pub fn alloc<T>(&self, object: T) -> &mut T
[src]
pub fn alloc<T>(&self, object: T) -> &mut T
pub fn alloc_slice<T>(&self, slice: &[T]) -> &mut [T] where
T: Copy,
[src]
pub fn alloc_slice<T>(&self, slice: &[T]) -> &mut [T] where
T: Copy,
Allocates a slice of objects that are copied into the DroplessArena
, returning a mutable
reference to it. Will panic if passed a zero-sized type.
Panics:
- Zero-sized types
- Zero-length slices
Trait Implementations
impl Send for DroplessArena
[src]
impl Send for DroplessArena
Auto Trait Implementations
impl !Sync for DroplessArena
impl !Sync for DroplessArena