pub struct Allocator {
pub ptr: AtomicPtr<Mutex<Dlmalloc>>,
/* private fields */
}Fields§
§ptr: AtomicPtr<Mutex<Dlmalloc>>Implementations§
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
Allocates memory as described by the given
layout. Read moreAuto Trait Implementations§
impl !Freeze for Allocator
impl !RefUnwindSafe for Allocator
impl Send for Allocator
impl Sync for Allocator
impl Unpin for Allocator
impl UnsafeUnpin for Allocator
impl !UnwindSafe for Allocator
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