pub trait Write {
// Required methods
fn write_bit(&mut self, bit: Bit);
fn write_byte(&mut self, byte: u8);
fn write_bits(&mut self, bits: u64, num: u32);
fn close(self) -> Box<[u8]>;
}
Expand description
Write
Write is a trait that encapsulates the functionality required to write a stream of bytes.