Trait tsz::stream::Write

source ·
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.

Required Methods§

source

fn write_bit(&mut self, bit: Bit)

source

fn write_byte(&mut self, byte: u8)

source

fn write_bits(&mut self, bits: u64, num: u32)

source

fn close(self) -> Box<[u8]>

Implementors§