(self)
| 191 | } |
| 192 | |
| 193 | pub fn to_str(self) -> Result<&'gc str, Utf8Error> { |
| 194 | str::from_utf8(self.as_bytes()) |
| 195 | } |
| 196 | |
| 197 | /// Display a potentially non-utf8 `String` in a lossy way. |
| 198 | pub fn display_lossy(self) -> impl fmt::Display + 'gc { |
no test coverage detected