pub struct BumpAlloc { /* private fields */ }Expand description
A very simple allocator for Miden SDK-based programs.
This allocator does not free memory, it simply grows the heap until it runs out of available space for further allocations.
Implementations§
Trait Implementations§
Source§impl GlobalAlloc for BumpAlloc
 
impl GlobalAlloc for BumpAlloc
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 BumpAlloc
impl RefUnwindSafe for BumpAlloc
impl Send for BumpAlloc
impl Sync for BumpAlloc
impl Unpin for BumpAlloc
impl UnwindSafe for BumpAlloc
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