(&mut self)
| 785 | type Item = (usize, char); |
| 786 | |
| 787 | fn next(&mut self) -> Option<Self::Item> { |
| 788 | self.chars.next().map(|c| { |
| 789 | let index = self.next_offset; |
| 790 | self.next_offset += c.len_utf8(); |
| 791 | (index, c) |
| 792 | }) |
| 793 | } |
| 794 | } |
| 795 | |
| 796 | impl FusedIterator for CharIndicesWithOffset<'_> {} |
no test coverage detected