Returns an iterator over the chunks
(&self)
| 158 | |
| 159 | /// Returns an iterator over the chunks |
| 160 | pub fn iter(&self) -> UnalignedBitChunkIterator<'a> { |
| 161 | self.prefix |
| 162 | .into_iter() |
| 163 | .chain(self.chunks.iter().cloned()) |
| 164 | .chain(self.suffix) |
| 165 | } |
| 166 | |
| 167 | /// Counts the number of ones |
| 168 | pub fn count_ones(&self) -> usize { |