(&self)
| 218 | type Target = str; |
| 219 | |
| 220 | fn deref(&self) -> &Self::Target { |
| 221 | // SAFETY: We know this is valid UTF-8 since we only |
| 222 | // construct the underlying `bytes` from valid UTF-8 |
| 223 | str::from_utf8(&self.0).expect("We only construct the underlying bytes from valid UTF-8") |
| 224 | } |
| 225 | } |
| 226 | |
| 227 | impl<'a, T> AsRef<T> for Cmdline<'a> |