Display a potentially non-utf8 `String` in a lossy way.
(self)
| 196 | |
| 197 | /// Display a potentially non-utf8 `String` in a lossy way. |
| 198 | pub fn display_lossy(self) -> impl fmt::Display + 'gc { |
| 199 | display_utf8_lossy(self.as_bytes()) |
| 200 | } |
| 201 | |
| 202 | /// Debug a potentially non-utf8 `String` in a lossy way. |
| 203 | pub fn debug_lossy(self) -> impl fmt::Debug + 'gc { |
no test coverage detected