pub struct DeferredStaticDlmalloc<R>(/* private fields */);
Implementations§
Source§impl<R> DeferredStaticDlmalloc<R>
impl<R> DeferredStaticDlmalloc<R>
pub const fn new_with_raw_mutex(raw_mutex: R) -> Self
Source§impl<R: RawMutex> DeferredStaticDlmalloc<R>
impl<R: RawMutex> DeferredStaticDlmalloc<R>
pub unsafe fn raw_mutex(&self) -> &R
pub fn set_bounds( &self, bounds: StaticHeapBounds, ) -> Result<(), BoundsAlreadySetError>
Trait Implementations§
Source§impl<R: RawMutex> Default for DeferredStaticDlmalloc<R>
impl<R: RawMutex> Default for DeferredStaticDlmalloc<R>
Source§impl<R: RawMutex> GlobalAlloc for DeferredStaticDlmalloc<R>
impl<R: RawMutex> GlobalAlloc for DeferredStaticDlmalloc<R>
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