Struct dbkit_engine::allocator::HeapAllocator
[−]
[src]
pub struct HeapAllocator { }
Simple heap allocator without memory tracking
Trait Implementations
impl Send for HeapAllocator
[src]
impl Sync for HeapAllocator
[src]
impl Allocator for HeapAllocator
[src]
Simple heap allocator that delegates to alloc::heap
fn allocate(&self, size: usize) -> Result<OwnedChunk, DBError>
fn allocate_aligned(&self, size: usize, align: usize) -> Result<OwnedChunk, DBError>
unsafe fn resize<'a>(&self, prev: &mut OwnedChunk<'a>, size: usize) -> Option<DBError>
Resize; will try to resize in place if possible