pub fn write_bit(&mut self, data: &bool) -> Result<()> {
        self.bits.set(7 - self.current_bit as usize, *data);
        self.current_bit += 1;
        if self.current_bit == 7 {
            self.flush_bits();
        }
        Ok(())
    }
// TODO: Flush bytes on all subsequent other type of data writes
Flush bytes on all subsequent other type of data writes
Flush bytes on all subsequent other type of data writes
pub fn write_bit(&mut self, data: &bool) -> Result<()> {
        self.bits.set(7 - self.current_bit as usize, *data);
        self.current_bit += 1;
        if self.current_bit == 7 {
            self.flush_bits();
        }
        Ok(())
    }
pub fn write_bit ( & mut self , data : & bool ) -> Result < ( ) > { self . bits . set ( 7 - self . current_bit as usize , * data ) ; self . current_bit += 1 ; if self . current_bit == 7 { self . flush_bits ( ) ; } Ok ( ( ) ) }
TODO: Flush bytes on all subsequent other type of data writes
TODO : Flush bytes on all subsequent other type of data writes
&mut self
data
&bool
&mut self
data
&bool