pub struct NaiveAlloc;
Expand description
The allocator that allocates and frees memory using CoreVM-specific alloc
and free
host-calls.
Each allocation is rounded up to the multiple of the page size.
Trait Implementations§
Source§impl GlobalAlloc for NaiveAlloc
impl GlobalAlloc for NaiveAlloc
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 NaiveAlloc
impl RefUnwindSafe for NaiveAlloc
impl Send for NaiveAlloc
impl Sync for NaiveAlloc
impl Unpin for NaiveAlloc
impl UnwindSafe for NaiveAlloc
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