pub fn trim_right(&mut self) {
        for offset in (0..self.remaining_bits()).rev() {
            if self.get_bit_opt(offset) == Some(true) {
                self.data_window.end = self.data_window.start + offset;
                break
            }
        }
    }
/// trim zeros from right to first one
trim zeros from right to first one
trim zeros from right to first one
pub fn trim_right(&mut self) {
        for offset in (0..self.remaining_bits()).rev() {
            if self.get_bit_opt(offset) == Some(true) {
                self.data_window.end = self.data_window.start + offset;
                break
            }
        }
    }
pub fn trim_right ( & mut self ) { for offset in ( 0 .. self . remaining_bits ( ) ) . rev ( ) { if self . get_bit_opt ( offset ) == Some ( true ) { self . data_window . end = self . data_window . start + offset ; break } } }
trim zeros from right to first one
trim zeros from right to first one
&mut self
&mut self