(&self, vm: &VirtualMachine)
| 382 | } |
| 383 | |
| 384 | pub fn str_utf8(&self, vm: &VirtualMachine) -> PyResult<PyRef<PyUtf8Str>> { |
| 385 | self.str(vm)?.try_into_utf8(vm) |
| 386 | } |
| 387 | pub fn str(&self, vm: &VirtualMachine) -> PyResult<PyRef<PyStr>> { |
| 388 | let obj = match self.to_owned().downcast_exact::<PyStr>(vm) { |
| 389 | Ok(s) => return Ok(s.into_pyref()), |
no test coverage detected