(obj: &PyObject, vm: &VirtualMachine)
| 2038 | } |
| 2039 | |
| 2040 | fn try_downcast_from(obj: &PyObject, vm: &VirtualMachine) -> PyResult<()> { |
| 2041 | let str = obj.try_downcast_ref::<PyStr>(vm)?; |
| 2042 | str.ensure_valid_utf8(vm) |
| 2043 | } |
| 2044 | } |
| 2045 | |
| 2046 | impl<'a> From<&'a AsciiStr> for PyUtf8Str { |
nothing calls this directly
no test coverage detected