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 more