Struct bdwgc_alloc::Allocator
source · pub struct Allocator;
Implementations§
source§impl Allocator
impl Allocator
pub fn lock()
pub fn unlock()
pub unsafe fn initialize()
pub unsafe fn register_current_thread() -> Result<(), Error>
pub unsafe fn set_stack_bottom(bottom: *const u8)
pub unsafe fn unregister_current_thread()
Trait Implementations§
source§impl GlobalAlloc for Allocator
impl GlobalAlloc for Allocator
source§unsafe fn alloc(&self, layout: Layout) -> *mut u8
unsafe fn alloc(&self, layout: Layout) -> *mut u8
Allocate memory as described by the given
layout
. Read more