(&self)
| 149 | /// Most interned strings are valid UTF-8, so this is an ergonomic default. |
| 150 | #[inline] |
| 151 | pub fn as_str(&self) -> &str { |
| 152 | self.inner |
| 153 | .to_str() |
| 154 | .unwrap_or_else(|| panic!("interned str is always valid UTF-8")) |
| 155 | } |
| 156 | } |
| 157 | |
| 158 | impl<T: PyPayload> PyInterned<T> { |
no test coverage detected