Enum brotli_ffi::enc::interface::Command
source · pub enum Command<SliceType>where
SliceType: SliceWrapper<u8>,{
Copy(CopyCommand),
Dict(DictCommand),
Literal(LiteralCommand<SliceType>),
BlockSwitchCommand(BlockSwitch),
BlockSwitchLiteral(LiteralBlockSwitch),
BlockSwitchDistance(BlockSwitch),
PredictionMode(PredictionModeContextMap<SliceType>),
}
Variants
Copy(CopyCommand)
Dict(DictCommand)
Literal(LiteralCommand<SliceType>)
BlockSwitchCommand(BlockSwitch)
BlockSwitchLiteral(LiteralBlockSwitch)
BlockSwitchDistance(BlockSwitch)
PredictionMode(PredictionModeContextMap<SliceType>)
Implementations
sourceimpl<SliceType> Command<SliceType>where
SliceType: SliceWrapper<u8> + Default,
impl<SliceType> Command<SliceType>where
SliceType: SliceWrapper<u8> + Default,
pub fn free_array<F>(&mut self, apply_func: &mut F)where
F: FnMut(SliceType),
sourceimpl<SliceType> Command<SliceType>where
SliceType: SliceWrapper<u8> + Freezable,
impl<SliceType> Command<SliceType>where
SliceType: SliceWrapper<u8> + Freezable,
pub fn freeze(&self) -> Command<SliceOffset>
Trait Implementations
sourceimpl<AllocU8, AllocU16, AllocI32, AllocU32, AllocU64, AllocCommand, AllocFloatX, AllocV8, AllocS16, AllocPDF, AllocStaticCommand, AllocHistogramLiteral, AllocHistogramCommand, AllocHistogramDistance, AllocHistogramPair, AllocContextType, AllocHuffmanTree, AllocZopfliNode> Allocator<Command<SliceOffset>> 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<Command<SliceOffset>> 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 = <AllocStaticCommand as Allocator<Command<SliceOffset>>>::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<Command<SliceOffset>>>::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<Command<SliceOffset>>>::AllocatedMemory
)
sourceimpl<SliceType> Default for Command<SliceType>where
SliceType: SliceWrapper<u8>,
impl<SliceType> Default for Command<SliceType>where
SliceType: SliceWrapper<u8>,
sourceimpl<SliceType> Nop<Command<SliceType>> for Command<SliceType>where
SliceType: SliceWrapper<u8>,
impl<SliceType> Nop<Command<SliceType>> for Command<SliceType>where
SliceType: SliceWrapper<u8>,
impl<SliceType> Copy for Command<SliceType>where
SliceType: SliceWrapper<u8> + Clone + Copy,
Auto Trait Implementations
impl<SliceType> RefUnwindSafe for Command<SliceType>where
SliceType: RefUnwindSafe,
impl<SliceType> Send for Command<SliceType>where
SliceType: Send,
impl<SliceType> Sync for Command<SliceType>where
SliceType: Sync,
impl<SliceType> Unpin for Command<SliceType>where
SliceType: Unpin,
impl<SliceType> UnwindSafe for Command<SliceType>where
SliceType: UnwindSafe,
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