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>

source

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>

source

fn full(&self) -> bool

source

fn error_if_full(&mut self)

source

fn clear(&mut self)

source

fn free<Cb>(&mut self, callback: &mut Cb) -> Result<(), ()>

Trait Implementations§

source§

impl<'a, Alloc: BrotliAlloc> CommandProcessor<'a> for CommandQueue<'a, Alloc>

source§

fn push(&mut self, val: Command<InputReference<'a>>)

source§

fn push_block_switch_literal(&mut self, block_type: u8)

source§

fn push_literals(&mut self, data: &InputPair<'a>)

source§

fn push_rand_literals(&mut self, data: &InputPair<'a>)

source§

impl<'a, Alloc: BrotliAlloc> Drop for CommandQueue<'a, Alloc>

source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

§

impl<'a, Alloc> Freeze for CommandQueue<'a, Alloc>

§

impl<'a, Alloc> RefUnwindSafe for CommandQueue<'a, Alloc>

§

impl<'a, Alloc> Send for CommandQueue<'a, Alloc>

§

impl<'a, Alloc> Sync for CommandQueue<'a, Alloc>

§

impl<'a, Alloc> Unpin for CommandQueue<'a, Alloc>

§

impl<'a, Alloc> !UnwindSafe for CommandQueue<'a, Alloc>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.