[][src]Trait succinct::stream::BitWrite

pub trait BitWrite {
    fn write_bit(&mut self, value: bool) -> Result<()>;

    fn write_int<N: PrimInt>(&mut self, nbits: usize, value: N) -> Result<()> { ... }
fn write_int_be<N: PrimInt>(&mut self, nbits: usize, value: N) -> Result<()> { ... } }

Allows writing bits to a sink.

Required methods

fn write_bit(&mut self, value: bool) -> Result<()>

Writes a single bit to the sink.

Loading content...

Provided methods

fn write_int<N: PrimInt>(&mut self, nbits: usize, value: N) -> Result<()>

Writes the lower nbits of value, least-significant first.

fn write_int_be<N: PrimInt>(&mut self, nbits: usize, value: N) -> Result<()>

Writes the lower nbits of value, most-significant first.

Loading content...

Implementations on Foreign Types

impl BitWrite for VecDeque<bool>[src]

Loading content...

Implementors

impl<Inner: BitVecPush> BitWrite for BitBuffer<Inner>[src]

Loading content...