Skip to main content

CoefModel

Trait CoefModel 

Source
pub trait CoefModel {
    // Required method
    fn code<B: Bits>(&mut self, b: &mut B, f: &Feat, v: i32) -> i32;
}
Expand description

A probability model for one quantized coefficient.

Required Methods§

Source

fn code<B: Bits>(&mut self, b: &mut B, f: &Feat, v: i32) -> i32

Code (or decode) the coefficient v with context f; returns it.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§