brotli::enc::prior_eval

Trait Prior

source
pub trait Prior {
    // Required methods
    fn lookup_lin(
        stride_byte: u8,
        selected_context: u8,
        actual_context: usize,
        high_nibble: Option<u8>,
    ) -> usize;
    fn which() -> usize;

    // Provided methods
    fn lookup_mut(
        data: &mut [s16],
        stride_byte: u8,
        selected_context: u8,
        actual_context: usize,
        high_nibble: Option<u8>,
    ) -> CDF<'_> { ... }
    fn lookup(
        data: &[s16],
        stride_byte: u8,
        selected_context: u8,
        actual_context: usize,
        high_nibble: Option<u8>,
    ) -> &s16 { ... }
    fn score_index(
        stride_byte: u8,
        selected_context: u8,
        actual_context: usize,
        high_nibble: Option<u8>,
    ) -> usize { ... }
}

Required Methods§

source

fn lookup_lin( stride_byte: u8, selected_context: u8, actual_context: usize, high_nibble: Option<u8>, ) -> usize

source

fn which() -> usize

Provided Methods§

source

fn lookup_mut( data: &mut [s16], stride_byte: u8, selected_context: u8, actual_context: usize, high_nibble: Option<u8>, ) -> CDF<'_>

source

fn lookup( data: &[s16], stride_byte: u8, selected_context: u8, actual_context: usize, high_nibble: Option<u8>, ) -> &s16

source

fn score_index( stride_byte: u8, selected_context: u8, actual_context: usize, high_nibble: Option<u8>, ) -> usize

Object Safety§

This trait is not object safe.

Implementors§