(w: &Wtf8)
| 107 | } |
| 108 | |
| 109 | fn iter_code_points(w: &Wtf8) -> impl Iterator<Item = (StrSize, CodePoint)> { |
| 110 | w.code_point_indices() |
| 111 | .enumerate() |
| 112 | .map(|(chars, (bytes, c))| (StrSize { bytes, chars }, c)) |
| 113 | } |
| 114 | |
| 115 | impl ops::Add for StrSize { |
| 116 | type Output = Self; |
no test coverage detected