Trait AllocBound

Source
pub trait AllocBound {
    // Required methods
    fn try_alloc(&mut self, amount: usize) -> Result<(), AllocError>;
    fn dealloc(&mut self, amount: usize);
}

Required Methods§

Source

fn try_alloc(&mut self, amount: usize) -> Result<(), AllocError>

Source

fn dealloc(&mut self, amount: usize)

Implementations on Foreign Types§

Source§

impl<B: AllocBound + Copy> AllocBound for Rc<Cell<B>>

Source§

fn try_alloc(&mut self, amount: usize) -> Result<(), AllocError>

Source§

fn dealloc(&mut self, amount: usize)

Source§

impl<B: AllocBound> AllocBound for Rc<RefCell<B>>

Source§

fn try_alloc(&mut self, amount: usize) -> Result<(), AllocError>

Source§

fn dealloc(&mut self, amount: usize)

Implementors§