[−][src]Trait brotli_decompressor::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]
impl<T> Allocator<T> for HeapAlloc<T> where
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]
impl<'a, T, U> Allocator<T> for StackAllocator<'a, T, U> where
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]
impl<T> Allocator<T> for StandardAlloc where
T: Clone + Default,
type AllocatedMemory = WrapBox<T>
fn alloc_cell(&mut self, len: usize) -> WrapBox<T> | [src] |
fn free_cell(&mut self, _data: WrapBox<T>) | [src] |
impl<Ty: Sized + Default + Clone> Allocator<Ty> for SubclassableAllocator
[src]
impl<Ty: Sized + Default + Clone> Allocator<Ty> for SubclassableAllocator
type AllocatedMemory = MemoryBlock<Ty>
fn alloc_cell(&mut self, size: usize) -> MemoryBlock<Ty> | [src] |
fn free_cell(&mut self, bv: MemoryBlock<Ty>) | [src] |