pub struct SimicsAlloc;
Expand description
Global allocator that uses SIMICS’ exported memory management functionality
Trait Implementations§
source§impl GlobalAlloc for SimicsAlloc
impl GlobalAlloc for SimicsAlloc
source§unsafe fn alloc(&self, layout: Layout) -> *mut u8
unsafe fn alloc(&self, layout: Layout) -> *mut u8
Allocate using the global SIMICS allocator. Note: this allocation function may fail in circumstances where very unusual alignment is requried.
source§unsafe fn alloc_zeroed(&self, layout: Layout) -> *mut u8
unsafe fn alloc_zeroed(&self, layout: Layout) -> *mut u8
All allocations are zeroed, so this method calls through to alloc
Auto Trait Implementations§
impl Freeze for SimicsAlloc
impl RefUnwindSafe for SimicsAlloc
impl Send for SimicsAlloc
impl Sync for SimicsAlloc
impl Unpin for SimicsAlloc
impl UnwindSafe for SimicsAlloc
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