pub struct NsisAllocator;Expand description
A GlobalAlloc on the process heap.
The process heap is the smallest allocator available to a plug-in — it needs no CRT and no initialisation, so the DLL links without a C runtime.
Trait Implementations§
Source§impl GlobalAlloc for NsisAllocator
impl GlobalAlloc for NsisAllocator
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 moreAuto Trait Implementations§
impl Freeze for NsisAllocator
impl RefUnwindSafe for NsisAllocator
impl Send for NsisAllocator
impl Sync for NsisAllocator
impl Unpin for NsisAllocator
impl UnsafeUnpin for NsisAllocator
impl UnwindSafe for NsisAllocator
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