Enum bit_manager::buffer::Precision [] [src]

pub enum Precision {
    Byte,
    Bit,
}

An enum that represents how a stream is terminated

Variants

Represents a stream terminated by all zeroes in order to align the end to the next byte.

Only precise to last byte.

Usage

  • 0110 => 0110(0000)
  • 0110001 => 0110001(0)
  • 01001000 => 01001000

Represents a stream terminated by a one bit followed by all zeroes in order to align the end to the next byte.

Allows precision to last bit, but requires data created by a BitWriter and often extra space.

Usage

  • 0110 => 0110(1000)
  • 0110001 => 0110001(1)
  • 01001000 => 01001000(10000000)

Trait Implementations

impl Debug for Precision
[src]

[src]

Formats the value using the given formatter.