/// Shrinks the bitset so that it does not use unneeded memory.
Shrinks the bitset so that it does not use unneeded memory.
Shrinks the bitset so that it does not use unneeded memory .
pub fn shrink_to_fit(&mut self) {
        let unneeded_values = self.0.iter().rev().take_while(|&&x| x == 0).count();
        if unneeded_values > 0 {
            self.0.truncate(self.0.len() - unneeded_values);
            self.0.shrink_to_fit();
        }
    }
pub fn shrink_to_fit ( & mut self ) { let unneeded_values = self . 0 . iter ( ) . rev ( ) . take_while ( | & & x | x == 0 ) . count ( ) ; if unneeded_values > 0 { self . 0 . truncate ( self . 0 . len ( ) - unneeded_values ) ; self . 0 . shrink_to_fit ( ) ; } }
Shrinks the bitset so that it does not use unneeded memory.
Shrinks the bitset so that it does not use unneeded memory .
&mut self