Trait solana_bpf_loader_program::alloc::Alloc[][src]

pub trait Alloc {
    fn alloc(&mut self, layout: Layout) -> Result<u64, AllocErr>;
fn dealloc(&mut self, addr: u64, layout: Layout); }

Based loosely on the unstable std::alloc::Alloc trait

Required methods

fn alloc(&mut self, layout: Layout) -> Result<u64, AllocErr>[src]

fn dealloc(&mut self, addr: u64, layout: Layout)[src]

Loading content...

Implementors

impl Alloc for BpfAllocator[src]

Loading content...