Struct dlmalloc::GlobalDlmalloc
source · pub struct GlobalDlmalloc;
Expand description
An instance of a “global allocator” backed by Dlmalloc
This API requires the global
feature is activated, and this type
implements the GlobalAlloc
trait in the standard library.
Trait Implementations§
source§impl GlobalAlloc for GlobalDlmalloc
impl GlobalAlloc for GlobalDlmalloc
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 moreAuto Trait Implementations§
impl RefUnwindSafe for GlobalDlmalloc
impl Send for GlobalDlmalloc
impl Sync for GlobalDlmalloc
impl Unpin for GlobalDlmalloc
impl UnwindSafe for GlobalDlmalloc
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more