(vm: &VirtualMachine, obj: &'a PyObject)
| 494 | |
| 495 | impl<'a> TryFromBorrowedObject<'a> for Level { |
| 496 | fn try_from_borrowed_object(vm: &VirtualMachine, obj: &'a PyObject) -> PyResult<Self> { |
| 497 | let int: i32 = obj.try_index(vm)?.try_to_primitive(vm)?; |
| 498 | Ok(Self::new(int)) |
| 499 | } |
| 500 | } |
| 501 | |
| 502 | #[pyattr] |
nothing calls this directly
no test coverage detected