(&self, formatter: &mut impl core::fmt::Write)
| 119 | |
| 120 | impl StrRepr<'_, '_> { |
| 121 | pub fn write(&self, formatter: &mut impl core::fmt::Write) -> core::fmt::Result { |
| 122 | let quote = self.0.layout().quote.to_char(); |
| 123 | formatter.write_char(quote)?; |
| 124 | self.0.write_body(formatter)?; |
| 125 | formatter.write_char(quote) |
| 126 | } |
| 127 | |
| 128 | pub fn to_string(&self) -> Option<String> { |
| 129 | let mut s = String::with_capacity(self.0.layout().len?); |
no test coverage detected