[][src]Trait brotli_decompressor::Allocator

pub trait Allocator<T> {
    type AllocatedMemory: AllocatedSlice<T>;
    fn alloc_cell(&mut self, len: usize) -> Self::AllocatedMemory;
fn free_cell(&mut self, data: Self::AllocatedMemory); }

Associated Types

Loading content...

Required methods

fn alloc_cell(&mut self, len: usize) -> Self::AllocatedMemory

fn free_cell(&mut self, data: Self::AllocatedMemory)

Loading content...

Implementations on Foreign Types

impl<T> Allocator<T> for HeapAlloc<T> where
    T: Clone
[src]

type AllocatedMemory = WrapBox<T>

Loading content...

Implementors

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

type AllocatedMemory = AllocatedStackMemory<'a, T>

impl<T> Allocator<T> for StandardAlloc where
    T: Clone + Default
[src]

type AllocatedMemory = WrapBox<T>

impl<Ty: Sized + Default + Clone> Allocator<Ty> for SubclassableAllocator[src]

type AllocatedMemory = MemoryBlock<Ty>

Loading content...