Trait redux::bitio::BitWrite
[−]
[src]
pub trait BitWrite { fn write_bits(&mut self, symbol: usize, bits: usize) -> Result<()>; fn flush_bits(&mut self) -> Result<()>; }
A trait for object that allows writing symbols of variable bit lengths.
Required Methods
fn write_bits(&mut self, symbol: usize, bits: usize) -> Result<()>
Writes a single symbol to the output.
fn flush_bits(&mut self) -> Result<()>
Flushes all remaining bits to the output after the last whole octet, padded with zero bits.
Implementors
impl<'a> BitWrite for BitWriter<'a>