(&self, pos: Self::Pos)
| 210 | type Err = SimpleErr; |
| 211 | |
| 212 | fn next(&self, pos: Self::Pos) -> Result<(char, Self::Pos), Self::Err> |
| 213 | { |
| 214 | self.chars() |
| 215 | .nth(pos.idx() as usize) |
| 216 | .ok_or_else(|| self.err_at(pos, "[ERR] OUT OF BOUNDS")) |
| 217 | .map(|c| (c, pos.next(c))) |
| 218 | } |
| 219 | |
| 220 | fn next_range(&self, start: Self::Pos, counts: u32) -> Result<(&str, Self::Pos), Self::Err> |
| 221 | { |
no test coverage detected