(&self)
| 858 | /// This does not copy the data. |
| 859 | #[inline] |
| 860 | pub const fn as_str(&self) -> Result<&str, str::Utf8Error> { |
| 861 | str::from_utf8(&self.bytes) |
| 862 | } |
| 863 | |
| 864 | /// Creates an owned `Wtf8Buf` from a borrowed `Wtf8`. |
| 865 | pub fn to_wtf8_buf(&self) -> Wtf8Buf { |
no outgoing calls