[−][src]Trait brotli_decompressor::writer::Allocator
Associated Types
type AllocatedMemory: AllocatedSlice<T>
Required methods
fn alloc_cell(&mut self, len: usize) -> Self::AllocatedMemory
fn free_cell(&mut self, data: Self::AllocatedMemory)
Implementations on Foreign Types
impl<T> Allocator<T> for HeapAlloc<T> where
T: Clone,
[src]
T: Clone,
type AllocatedMemory = WrapBox<T>
fn alloc_cell(&mut self, len: usize) -> WrapBox<T>
[src]
fn free_cell(&mut self, _data: WrapBox<T>)
[src]
Implementors
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]
impl<T> Allocator<T> for StandardAlloc where
T: Clone + Default,
[src]
T: Clone + Default,