(&mut self)
| 2074 | type Item = char; |
| 2075 | |
| 2076 | fn next(&mut self) -> Option<char> { |
| 2077 | // If runes buffer is exhausted, decode next batch |
| 2078 | if self.runes_offset >= self.runes_count { |
| 2079 | self.decode_batch(); |
| 2080 | if self.runes_count == 0 { |
| 2081 | return None; |
| 2082 | } |
| 2083 | } |
| 2084 | |
| 2085 | let codepoint = self.runes[self.runes_offset]; |
| 2086 | self.runes_offset += 1; |
| 2087 | char::from_u32(codepoint) |
| 2088 | } |
| 2089 | |
| 2090 | fn size_hint(&self) -> (usize, Option<usize>) { |
| 2091 | // Lower bound: remaining runes in current buffer |
nothing calls this directly
no test coverage detected