(&self)
| 509 | } |
| 510 | |
| 511 | pub fn to_string_lossy(&self) -> Cow<'_, str> { |
| 512 | self.to_str() |
| 513 | .map(Cow::Borrowed) |
| 514 | .unwrap_or_else(|| self.as_wtf8().to_string_lossy()) |
| 515 | } |
| 516 | |
| 517 | pub const fn kind(&self) -> StrKind { |
| 518 | self.data.kind() |
no test coverage detected