Struct brotli::enc::StackAllocator
[−]
[src]
pub struct StackAllocator<'a, T, U> where
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, U> Allocator<T> for StackAllocator<'a, T, U> where
T: 'a,
U: AllocatedSlice<&'a mut [T]>,
[src]
T: 'a,
U: AllocatedSlice<&'a mut [T]>,
type AllocatedMemory = AllocatedStackMemory<'a, T>
fn alloc_cell(&mut self, len: usize) -> AllocatedStackMemory<'a, T>
[src]
fn free_cell(&mut self, val: AllocatedStackMemory<'a, T>)
[src]
Auto Trait Implementations
impl<'a, T, U> Send for StackAllocator<'a, T, U> where
T: Send,
U: Send,
T: Send,
U: Send,
impl<'a, T, U> Sync for StackAllocator<'a, T, U> where
T: Sync,
U: Sync,
T: Sync,
U: Sync,