Struct alloc_no_stdlib::StackAllocator [] [src]

pub struct StackAllocator<'a, T: 'a, U: AllocatedSlice<&'a mut [T]>> {
    pub nop: &'a mut [T],
    pub system_resources: U,
    pub free_list_start: usize,
    pub free_list_overflow_count: usize,
    pub initialize: fn(&mut [T]),
}

Fields

nop: &'a mut [T] system_resources: U free_list_start: usize free_list_overflow_count: usize initialize: fn(&mut [T])

Trait Implementations

impl<'a, T: 'a, U: AllocatedSlice<&'a mut [T]>> Allocator<T> for StackAllocator<'a, T, U>
[src]

type AllocatedMemory = AllocatedStackMemory<'a, T>

fn alloc_cell(self: &mut StackAllocator<'a, T, U>, len: usize) -> AllocatedStackMemory<'a, T>

fn free_cell(self: &mut StackAllocator<'a, T, U>, val: AllocatedStackMemory<'a, T>)