| 59 | unsafe fn write_source(&self, formatter: &mut impl core::fmt::Write) -> core::fmt::Result; |
| 60 | fn write_body_slow(&self, formatter: &mut impl core::fmt::Write) -> core::fmt::Result; |
| 61 | fn write_body(&self, formatter: &mut impl core::fmt::Write) -> core::fmt::Result { |
| 62 | if self.changed() { |
| 63 | self.write_body_slow(formatter) |
| 64 | } else { |
| 65 | // SAFETY: verified the string contains only printable characters. |
| 66 | unsafe { self.write_source(formatter) } |
| 67 | } |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | /// Returns the outer quotes to use and the number of quotes that need to be |