[][src]Trait deku::BitsWriter

pub trait BitsWriter {
    fn write(
        &self,
        output_is_le: bool,
        bit_size: Option<usize>
    ) -> BitVec<Msb0, u8>; }

"Writer" trait: write from type to bits

Required methods

fn write(&self, output_is_le: bool, bit_size: Option<usize>) -> BitVec<Msb0, u8>

Write type to bits

  • output_is_le - true if output is to be interpreted as little endian, false otherwise (controlled via endian deku attribute)
  • bit_size - Some if bits or bytes deku attributes provided, None otherwise
Loading content...

Implementations on Foreign Types

impl<T: BitsWriter> BitsWriter for Vec<T>[src]

impl BitsWriter for u8[src]

impl BitsWriter for u16[src]

impl BitsWriter for u32[src]

impl BitsWriter for u64[src]

impl BitsWriter for usize[src]

Loading content...

Implementors

Loading content...