(&self)
| 90 | } |
| 91 | |
| 92 | pub fn as_bytes(&self) -> &[u8] { |
| 93 | // TODO: FS encodings |
| 94 | match self { |
| 95 | Self::Str(s) => s.as_bytes(), |
| 96 | Self::Bytes(b) => b.as_bytes(), |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | pub fn to_string_lossy(&self) -> Cow<'_, str> { |
| 101 | match self { |
no outgoing calls
no test coverage detected