[−][src]Struct brotli::enc::prior_eval::PriorEval
Methods
impl<'a, Alloc: Allocator<s16> + Allocator<u32> + Allocator<v8>> PriorEval<'a, Alloc>
[src]
pub fn new(
alloc: &mut Alloc,
input: InputPair<'a>,
stride: [u8; 8],
prediction_mode: PredictionModeContextMap<InputReferenceMut<'a>>,
params: &BrotliEncoderParams
) -> Self
[src]
alloc: &mut Alloc,
input: InputPair<'a>,
stride: [u8; 8],
prediction_mode: PredictionModeContextMap<InputReferenceMut<'a>>,
params: &BrotliEncoderParams
) -> Self
pub fn choose_bitmask(&mut self)
[src]
pub fn free(&mut self, alloc: &mut Alloc)
[src]
pub fn take_prediction_mode(
&mut self
) -> PredictionModeContextMap<InputReferenceMut<'a>>
[src]
&mut self
) -> PredictionModeContextMap<InputReferenceMut<'a>>
Trait Implementations
impl<'a, 'b, Alloc: Allocator<s16> + Allocator<u32> + Allocator<v8>> CommandProcessor<'b> for PriorEval<'a, Alloc>
[src]
fn push(&mut self, val: Command<InputReference<'b>>)
[src]
fn push_literals(&mut self, data: &InputPair<'a>)
[src]
fn push_rand_literals(&mut self, data: &InputPair<'a>)
[src]
fn push_block_switch_literal(&mut self, block_type: u8)
[src]
impl<'a, Alloc: Allocator<s16> + Allocator<u32> + Allocator<v8>> IRInterpreter for PriorEval<'a, Alloc>
[src]
fn inc_local_byte_offset(&mut self, inc: usize)
[src]
fn local_byte_offset(&self) -> usize
[src]
fn update_block_type(&mut self, new_type: u8, stride: u8)
[src]
fn block_type(&self) -> u8
[src]
fn literal_data_at_offset(&self, index: usize) -> u8
[src]
fn literal_context_map(&self) -> &[u8]
[src]
fn prediction_mode(&self) -> LiteralPredictionModeNibble
[src]
fn update_cost(
&mut self,
stride_prior: [u8; 8],
stride_prior_offset: usize,
selected_bits: u8,
cm_prior: usize,
literal: u8
)
[src]
&mut self,
stride_prior: [u8; 8],
stride_prior_offset: usize,
selected_bits: u8,
cm_prior: usize,
literal: u8
)
Auto Trait Implementations
impl<'a, Alloc> RefUnwindSafe for PriorEval<'a, Alloc> where
<Alloc as Allocator<u32>>::AllocatedMemory: RefUnwindSafe,
<Alloc as Allocator<Compat16x16>>::AllocatedMemory: RefUnwindSafe,
<Alloc as Allocator<CompatF8>>::AllocatedMemory: RefUnwindSafe,
<Alloc as Allocator<u32>>::AllocatedMemory: RefUnwindSafe,
<Alloc as Allocator<Compat16x16>>::AllocatedMemory: RefUnwindSafe,
<Alloc as Allocator<CompatF8>>::AllocatedMemory: RefUnwindSafe,
impl<'a, Alloc> Send for PriorEval<'a, Alloc> where
<Alloc as Allocator<u32>>::AllocatedMemory: Send,
<Alloc as Allocator<Compat16x16>>::AllocatedMemory: Send,
<Alloc as Allocator<CompatF8>>::AllocatedMemory: Send,
<Alloc as Allocator<u32>>::AllocatedMemory: Send,
<Alloc as Allocator<Compat16x16>>::AllocatedMemory: Send,
<Alloc as Allocator<CompatF8>>::AllocatedMemory: Send,
impl<'a, Alloc> Sync for PriorEval<'a, Alloc> where
<Alloc as Allocator<u32>>::AllocatedMemory: Sync,
<Alloc as Allocator<Compat16x16>>::AllocatedMemory: Sync,
<Alloc as Allocator<CompatF8>>::AllocatedMemory: Sync,
<Alloc as Allocator<u32>>::AllocatedMemory: Sync,
<Alloc as Allocator<Compat16x16>>::AllocatedMemory: Sync,
<Alloc as Allocator<CompatF8>>::AllocatedMemory: Sync,
impl<'a, Alloc> Unpin for PriorEval<'a, Alloc> where
<Alloc as Allocator<u32>>::AllocatedMemory: Unpin,
<Alloc as Allocator<Compat16x16>>::AllocatedMemory: Unpin,
<Alloc as Allocator<CompatF8>>::AllocatedMemory: Unpin,
<Alloc as Allocator<u32>>::AllocatedMemory: Unpin,
<Alloc as Allocator<Compat16x16>>::AllocatedMemory: Unpin,
<Alloc as Allocator<CompatF8>>::AllocatedMemory: Unpin,
impl<'a, Alloc> !UnwindSafe for PriorEval<'a, Alloc>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,