pub struct BEMalloc { /* private fields */ }Expand description
A memory allocator that can be registered as the standard library’s default
through the #[global_allocator] attribute.
Implementations§
Trait Implementations§
Source§impl GlobalAlloc for BEMalloc
impl GlobalAlloc for BEMalloc
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 moreAuto Trait Implementations§
impl Freeze for BEMalloc
impl RefUnwindSafe for BEMalloc
impl Send for BEMalloc
impl Sync for BEMalloc
impl Unpin for BEMalloc
impl UnsafeUnpin for BEMalloc
impl UnwindSafe for BEMalloc
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