pub struct DlmallocGlobalAlloc<R, T> { /* private fields */ }
Implementations§
Source§impl<R, T> DlmallocGlobalAlloc<R, StaticDlmallocAllocator<T>>
impl<R, T> DlmallocGlobalAlloc<R, StaticDlmallocAllocator<T>>
Trait Implementations§
Source§impl<R: RawMutex, T: DlmallocAllocator> GlobalAlloc for DlmallocGlobalAlloc<R, T>
impl<R: RawMutex, T: DlmallocAllocator> GlobalAlloc for DlmallocGlobalAlloc<R, T>
Source§unsafe fn alloc(&self, layout: Layout) -> *mut u8
unsafe fn alloc(&self, layout: Layout) -> *mut u8
Allocates memory as described by the given
layout
. Read moreSource§unsafe fn alloc_zeroed(&self, layout: Layout) -> *mut u8
unsafe fn alloc_zeroed(&self, layout: Layout) -> *mut u8
Behaves like
alloc
, but also ensures that the contents
are set to zero before being returned. Read more