Struct solana_sdk::entrypoint::BumpAllocator [−][src]
Expand description
The bump allocator used as the default rust heap when running programs.
Fields
start: usize
len: usize
Trait Implementations
impl GlobalAlloc for BumpAllocator
[src]
impl GlobalAlloc for BumpAllocator
[src]Integer arithmetic in this global allocator implementation is safe when
operating on the prescribed HEAP_START_ADDRESS
and HEAP_LENGTH
. Any
other use may overflow and is thus unsupported and at one’s own risk.
pub unsafe fn alloc(&self, layout: Layout) -> *mut u8
[src]
pub unsafe fn alloc(&self, layout: Layout) -> *mut u8
[src]Allocate memory as described by the given layout
. Read more
pub unsafe fn dealloc(&self, *mut u8, Layout)
[src]
pub unsafe fn dealloc(&self, *mut u8, Layout)
[src]Deallocate the block of memory at the given ptr
pointer with the given layout
. Read more
Auto Trait Implementations
impl RefUnwindSafe for BumpAllocator
impl Send for BumpAllocator
impl Sync for BumpAllocator
impl Unpin for BumpAllocator
impl UnwindSafe for BumpAllocator
Blanket Implementations
impl<T> AbiExample for T
[src]
impl<T> AbiExample for T
[src]impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,