Trait dacite::core::Allocator [] [src]

pub trait Allocator: Send + Sync + Debug {
    fn alloc(
        &self,
        size: usize,
        alignment: usize,
        allocation_scope: SystemAllocationSope
    ) -> *mut c_void; fn realloc(
        &self,
        original: *mut c_void,
        size: usize,
        alignment: usize,
        allocation_scope: SystemAllocationSope
    ) -> *mut c_void; fn free(&self, memory: *mut c_void); fn has_internal_alloc(&self) -> bool { ... } fn internal_alloc(
        &self,
        size: usize,
        allocation_type: InternalAllocationType,
        allocation_scope: SystemAllocationSope
    ) { ... } fn internal_free(
        &self,
        size: usize,
        allocation_type: InternalAllocationType,
        allocation_scope: SystemAllocationSope
    ) { ... } }

Required Methods

Provided Methods

Implementors