(&self)
| 124 | } |
| 125 | impl StrOrChar<'_> { |
| 126 | const fn len(&self) -> usize { |
| 127 | match self { |
| 128 | StrOrChar::Str(s) => s.len(), |
| 129 | StrOrChar::Char(c) => c.len_wtf8(), |
| 130 | } |
| 131 | } |
| 132 | } |
| 133 | /// Scan a JSON string starting right after the opening quote. |
| 134 | /// |
no test coverage detected