trait CodeBuffer {
// Required methods
fn new(min_size: u8) -> Self;
fn reset(&mut self, min_size: u8);
fn bump_code_size(&mut self);
fn next_symbol(&mut self, inp: &mut &[u8]) -> Option<u16>;
fn refill_bits(&mut self, inp: &mut &[u8]);
fn get_bits(&mut self) -> Option<u16>;
fn max_code(&self) -> u16;
fn code_size(&self) -> u8;
}
Required Methods§
fn new(min_size: u8) -> Self
fn reset(&mut self, min_size: u8)
fn bump_code_size(&mut self)
Sourcefn next_symbol(&mut self, inp: &mut &[u8]) -> Option<u16>
fn next_symbol(&mut self, inp: &mut &[u8]) -> Option<u16>
Retrieve the next symbol, refilling if necessary.
Sourcefn refill_bits(&mut self, inp: &mut &[u8])
fn refill_bits(&mut self, inp: &mut &[u8])
Refill the internal buffer.
fn max_code(&self) -> u16
fn code_size(&self) -> u8
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.