Struct solana_program::entrypoint::BumpAllocator [−][src]
Expand description
The bump allocator used as the default rust heap when running programs.
Fields
start: usizelen: usizeTrait Implementations
impl GlobalAlloc for BumpAllocator[src]
impl GlobalAlloc for BumpAllocator[src]unsafe fn alloc(&self, layout: Layout) -> *mut u8[src]
unsafe fn alloc(&self, layout: Layout) -> *mut u8[src]Allocate memory as described by the given layout. Read more
unsafe fn dealloc(&self, _: *mut u8, _: Layout)[src]
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 Ttype Output = T
type Output = TShould 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>,