Struct brotli::enc::brotli_bit_stream::CommandQueue
source · struct CommandQueue<'a, Alloc: BrotliAlloc + 'a> {Show 15 fields
mb: InputPair<'a>,
mb_byte_offset: usize,
mc: &'a mut Alloc,
queue: <Alloc as Allocator<StaticCommand>>::AllocatedMemory,
pred_mode: PredictionModeContextMap<InputReferenceMut<'a>>,
loc: usize,
entropy_tally_scratch: EntropyTally<Alloc>,
best_strides_per_block_type: <Alloc as Allocator<u8>>::AllocatedMemory,
entropy_pyramid: EntropyPyramid<Alloc>,
context_map_entropy: ContextMapEntropy<'a, Alloc>,
stride_detection_quality: u8,
high_entropy_detection_quality: u8,
block_type_literal: u8,
best_stride_index: usize,
overfull: bool,
}
Fields§
§mb: InputPair<'a>
§mb_byte_offset: usize
§mc: &'a mut Alloc
§queue: <Alloc as Allocator<StaticCommand>>::AllocatedMemory
§pred_mode: PredictionModeContextMap<InputReferenceMut<'a>>
§loc: usize
§entropy_tally_scratch: EntropyTally<Alloc>
§best_strides_per_block_type: <Alloc as Allocator<u8>>::AllocatedMemory
§entropy_pyramid: EntropyPyramid<Alloc>
§context_map_entropy: ContextMapEntropy<'a, Alloc>
§stride_detection_quality: u8
§high_entropy_detection_quality: u8
§block_type_literal: u8
§best_stride_index: usize
§overfull: bool
Implementations§
source§impl<'a, Alloc: BrotliAlloc> CommandQueue<'a, Alloc>
impl<'a, Alloc: BrotliAlloc> CommandQueue<'a, Alloc>
fn new( alloc: &'a mut Alloc, num_commands: usize, pred_mode: PredictionModeContextMap<InputReferenceMut<'a>>, mb: InputPair<'a>, stride_detection_quality: u8, high_entropy_detection_quality: u8, context_map_entropy: ContextMapEntropy<'a, Alloc>, best_strides: <Alloc as Allocator<u8>>::AllocatedMemory, entropy_tally_scratch: EntropyTally<Alloc>, entropy_pyramid: EntropyPyramid<Alloc>, ) -> CommandQueue<'a, Alloc>
fn full(&self) -> bool
fn error_if_full(&mut self)
fn clear(&mut self)
fn free<Cb>(&mut self, callback: &mut Cb) -> Result<(), ()>where
Cb: FnMut(&mut PredictionModeContextMap<InputReferenceMut<'_>>, &mut [StaticCommand], InputPair<'_>, &mut Alloc),
Trait Implementations§
source§impl<'a, Alloc: BrotliAlloc> CommandProcessor<'a> for CommandQueue<'a, Alloc>
impl<'a, Alloc: BrotliAlloc> CommandProcessor<'a> for CommandQueue<'a, Alloc>
fn push(&mut self, val: Command<InputReference<'a>>)
fn push_block_switch_literal(&mut self, block_type: u8)
fn push_literals(&mut self, data: &InputPair<'a>)
fn push_rand_literals(&mut self, data: &InputPair<'a>)
source§impl<'a, Alloc: BrotliAlloc> Drop for CommandQueue<'a, Alloc>
impl<'a, Alloc: BrotliAlloc> Drop for CommandQueue<'a, Alloc>
Auto Trait Implementations§
impl<'a, Alloc> Freeze for CommandQueue<'a, Alloc>where
<Alloc as Allocator<Command<SliceOffset>>>::AllocatedMemory: Freeze,
<Alloc as Allocator<u8>>::AllocatedMemory: Freeze,
<Alloc as Allocator<u16>>::AllocatedMemory: Freeze,
<Alloc as Allocator<u32>>::AllocatedMemory: Freeze,
impl<'a, Alloc> RefUnwindSafe for CommandQueue<'a, Alloc>where
<Alloc as Allocator<Command<SliceOffset>>>::AllocatedMemory: RefUnwindSafe,
<Alloc as Allocator<u8>>::AllocatedMemory: RefUnwindSafe,
Alloc: RefUnwindSafe,
<Alloc as Allocator<u16>>::AllocatedMemory: RefUnwindSafe,
<Alloc as Allocator<u32>>::AllocatedMemory: RefUnwindSafe,
impl<'a, Alloc> Send for CommandQueue<'a, Alloc>where
<Alloc as Allocator<Command<SliceOffset>>>::AllocatedMemory: Send,
<Alloc as Allocator<u8>>::AllocatedMemory: Send,
Alloc: Send,
<Alloc as Allocator<u16>>::AllocatedMemory: Send,
<Alloc as Allocator<u32>>::AllocatedMemory: Send,
impl<'a, Alloc> Sync for CommandQueue<'a, Alloc>where
<Alloc as Allocator<Command<SliceOffset>>>::AllocatedMemory: Sync,
<Alloc as Allocator<u8>>::AllocatedMemory: Sync,
Alloc: Sync,
<Alloc as Allocator<u16>>::AllocatedMemory: Sync,
<Alloc as Allocator<u32>>::AllocatedMemory: Sync,
impl<'a, Alloc> Unpin for CommandQueue<'a, Alloc>where
<Alloc as Allocator<Command<SliceOffset>>>::AllocatedMemory: Unpin,
<Alloc as Allocator<u8>>::AllocatedMemory: Unpin,
<Alloc as Allocator<u16>>::AllocatedMemory: Unpin,
<Alloc as Allocator<u32>>::AllocatedMemory: Unpin,
impl<'a, Alloc> !UnwindSafe for CommandQueue<'a, Alloc>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more