Trait hashbrown::raw::alloc::inner::Allocator

source ·
pub unsafe trait Allocator {
    // Required methods
    fn allocate(&self, layout: Layout) -> Result<NonNull<u8>, ()>;
    unsafe fn deallocate(&self, ptr: NonNull<u8>, layout: Layout);
}

Required Methods§

source

fn allocate(&self, layout: Layout) -> Result<NonNull<u8>, ()>

source

unsafe fn deallocate(&self, ptr: NonNull<u8>, layout: Layout)

Implementors§