(&self, formatter: &mut impl core::fmt::Write)
| 262 | } |
| 263 | |
| 264 | unsafe fn write_source(&self, formatter: &mut impl core::fmt::Write) -> core::fmt::Result { |
| 265 | formatter.write_str(unsafe { |
| 266 | // SAFETY: this function must be called only when source is printable characters (i.e. no surrogates) |
| 267 | core::str::from_utf8_unchecked(self.source.as_bytes()) |
| 268 | }) |
| 269 | } |
| 270 | |
| 271 | #[cold] |
| 272 | fn write_body_slow(&self, formatter: &mut impl core::fmt::Write) -> core::fmt::Result { |
no test coverage detected