(zelf: &Py<Self>, _vm: &VirtualMachine)
| 507 | impl Representable for PyComplex { |
| 508 | #[inline] |
| 509 | fn repr_str(zelf: &Py<Self>, _vm: &VirtualMachine) -> PyResult<String> { |
| 510 | // TODO: when you fix this, move it to rustpython_common::complex::repr and update |
| 511 | // ast/src/unparse.rs + impl Display for Constant in ast/src/constant.rs |
| 512 | let Complex64 { re, im } = zelf.value; |
| 513 | Ok(rustpython_literal::complex::to_string(re, im)) |
| 514 | } |
| 515 | } |
| 516 | |
| 517 | #[derive(FromArgs)] |
nothing calls this directly
no test coverage detected