Struct lzw::LsbWriter [-] [+] [src]

pub struct LsbWriter<'a, W> where W: Write + 'a {
    // some fields omitted
}

Writes bits to a byte stream, LSB first.

Methods

impl<'a, W> LsbWriter<'a, W> where W: Write + 'a

fn new(writer: &'a mut W) -> LsbWriter<'a, W>

Creates a new bit reader

Trait Implementations

impl<'a, W> Write for LsbWriter<'a, W> where W: Write + 'a

fn write(&mut self, buf: &[u8]) -> Result<usize>

fn flush(&mut self) -> Result<()>

fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>

fn write_fmt(&mut self, fmt: Arguments) -> Result<(), Error>

fn by_ref(&mut self) -> &mut Self

fn broadcast<W>(self, other: W) -> Broadcast<Self, W> where W: Write

impl<'a, W> BitWriter for LsbWriter<'a, W> where W: Write + 'a

fn write_bits(&mut self, v: u16, n: u8) -> Result<()>