Enum brotli_ffi::enc::histogram::ContextType
source · pub enum ContextType {
CONTEXT_LSB6,
CONTEXT_MSB6,
CONTEXT_UTF8,
CONTEXT_SIGNED,
}
Variants
CONTEXT_LSB6
CONTEXT_MSB6
CONTEXT_UTF8
CONTEXT_SIGNED
Trait Implementations
sourceimpl<AllocU8, AllocU16, AllocI32, AllocU32, AllocU64, AllocCommand, AllocFloatX, AllocV8, AllocS16, AllocPDF, AllocStaticCommand, AllocHistogramLiteral, AllocHistogramCommand, AllocHistogramDistance, AllocHistogramPair, AllocContextType, AllocHuffmanTree, AllocZopfliNode> Allocator<ContextType> for CombiningAllocator<AllocU8, AllocU16, AllocI32, AllocU32, AllocU64, AllocCommand, AllocFloatX, AllocV8, AllocS16, AllocPDF, AllocStaticCommand, AllocHistogramLiteral, AllocHistogramCommand, AllocHistogramDistance, AllocHistogramPair, AllocContextType, AllocHuffmanTree, AllocZopfliNode>where
AllocU8: Allocator<u8>,
AllocU16: Allocator<u16>,
AllocI32: Allocator<i32>,
AllocU32: Allocator<u32>,
AllocU64: Allocator<u64>,
AllocCommand: Allocator<Command>,
AllocFloatX: Allocator<f32>,
AllocV8: Allocator<CompatF8>,
AllocS16: Allocator<Compat16x16>,
AllocPDF: Allocator<PDF>,
AllocStaticCommand: Allocator<Command<SliceOffset>>,
AllocHistogramLiteral: Allocator<HistogramLiteral>,
AllocHistogramCommand: Allocator<HistogramCommand>,
AllocHistogramDistance: Allocator<HistogramDistance>,
AllocHistogramPair: Allocator<HistogramPair>,
AllocContextType: Allocator<ContextType>,
AllocHuffmanTree: Allocator<HuffmanTree>,
AllocZopfliNode: Allocator<ZopfliNode>,
impl<AllocU8, AllocU16, AllocI32, AllocU32, AllocU64, AllocCommand, AllocFloatX, AllocV8, AllocS16, AllocPDF, AllocStaticCommand, AllocHistogramLiteral, AllocHistogramCommand, AllocHistogramDistance, AllocHistogramPair, AllocContextType, AllocHuffmanTree, AllocZopfliNode> Allocator<ContextType> for CombiningAllocator<AllocU8, AllocU16, AllocI32, AllocU32, AllocU64, AllocCommand, AllocFloatX, AllocV8, AllocS16, AllocPDF, AllocStaticCommand, AllocHistogramLiteral, AllocHistogramCommand, AllocHistogramDistance, AllocHistogramPair, AllocContextType, AllocHuffmanTree, AllocZopfliNode>where
AllocU8: Allocator<u8>,
AllocU16: Allocator<u16>,
AllocI32: Allocator<i32>,
AllocU32: Allocator<u32>,
AllocU64: Allocator<u64>,
AllocCommand: Allocator<Command>,
AllocFloatX: Allocator<f32>,
AllocV8: Allocator<CompatF8>,
AllocS16: Allocator<Compat16x16>,
AllocPDF: Allocator<PDF>,
AllocStaticCommand: Allocator<Command<SliceOffset>>,
AllocHistogramLiteral: Allocator<HistogramLiteral>,
AllocHistogramCommand: Allocator<HistogramCommand>,
AllocHistogramDistance: Allocator<HistogramDistance>,
AllocHistogramPair: Allocator<HistogramPair>,
AllocContextType: Allocator<ContextType>,
AllocHuffmanTree: Allocator<HuffmanTree>,
AllocZopfliNode: Allocator<ZopfliNode>,
type AllocatedMemory = <AllocContextType as Allocator<ContextType>>::AllocatedMemory
fn alloc_cell(
&mut self,
size: usize
) -> <CombiningAllocator<AllocU8, AllocU16, AllocI32, AllocU32, AllocU64, AllocCommand, AllocFloatX, AllocV8, AllocS16, AllocPDF, AllocStaticCommand, AllocHistogramLiteral, AllocHistogramCommand, AllocHistogramDistance, AllocHistogramPair, AllocContextType, AllocHuffmanTree, AllocZopfliNode> as Allocator<ContextType>>::AllocatedMemory
fn free_cell(
&mut self,
data: <CombiningAllocator<AllocU8, AllocU16, AllocI32, AllocU32, AllocU64, AllocCommand, AllocFloatX, AllocV8, AllocS16, AllocPDF, AllocStaticCommand, AllocHistogramLiteral, AllocHistogramCommand, AllocHistogramDistance, AllocHistogramPair, AllocContextType, AllocHuffmanTree, AllocZopfliNode> as Allocator<ContextType>>::AllocatedMemory
)
sourceimpl Clone for ContextType
impl Clone for ContextType
sourcefn clone(&self) -> ContextType
fn clone(&self) -> ContextType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Default for ContextType
impl Default for ContextType
sourcefn default() -> ContextType
fn default() -> ContextType
Returns the “default value” for a type. Read more
impl Copy for ContextType
Auto Trait Implementations
impl RefUnwindSafe for ContextType
impl Send for ContextType
impl Sync for ContextType
impl Unpin for ContextType
impl UnwindSafe for ContextType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more