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

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>

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

Loading content...

Implementors

impl Alloc for BPFAllocator[src]

Loading content...