Struct aren_alloc::Allocator [] [src]

pub struct Allocator { /* fields omitted */ }

Allows allocation

Methods

impl Allocator
[src]

Construct a new allocator with default page capacity.

Construct a new allocator with capacity per inner page

Allocate an instance of T with value elem, return the allocated pointer. size_of::<T>() should be le to 256 bytes.

Allocate an instance of T with default value, return the allocated pointer. size_of::<T>() should be le to 256 bytes.