Counts the number of ones
(&self)
| 166 | |
| 167 | /// Counts the number of ones |
| 168 | pub fn count_ones(&self) -> usize { |
| 169 | self.iter().map(|x| x.count_ones() as usize).sum() |
| 170 | } |
| 171 | } |
| 172 | |
| 173 | /// Iterator over an [`UnalignedBitChunk`] |
no test coverage detected