pub trait CodebookDescReader<S> {
// Required methods
fn bits(&self, idx: usize) -> u8;
fn code(&self, idx: usize) -> u32;
fn sym(&self, idx: usize) -> S;
fn len(&self) -> usize;
fn is_empty(&self) -> bool;
}
Expand description
This trait defines a series of methods to get some information from a codebook.