| 1 | use craterust-analyzer cargo pyo3-ffi 0.28.2 crate/::objectrust-analyzer cargo pyo3-ffi 0.28.2 object/::*; |
| 2 | use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::ffirust-analyzer cargo std https://github.com/rust-lang/rust/library/std ffi/::{c_doublerust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_double#, c_intrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_int#}; |
| 3 | use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::ptrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ptr/::addr_of_mutrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ptr/addr_of_mut!; |
| 4 | |
| 5 | #[cfg_attr(windows, link(name = "pythonXY"))] |
| 6 | extern "C" { |
| 7 | #[cfg_attr(PyPy, link_name = "PyPyComplex_Type")] |
| 8 | pub static mut PyComplex_Typerust-analyzer cargo pyo3-ffi 0.28.2 PyComplex_Type.: PyTypeObjectrust-analyzer cargo pyo3-ffi 0.28.2 object/PyTypeObject#; |
| 9 | } |
| 10 | |
| 11 | #[inline] |
| 12 | pub unsafe fn PyComplex_Checkrust-analyzer cargo pyo3-ffi 0.28.2 complexobject/PyComplex_Check().(op: *mut PyObjectrust-analyzer cargo pyo3-ffi 0.28.2 object/PyObject#) -> c_intrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_int# { |
| 13 | PyObject_TypeCheckrust-analyzer cargo pyo3-ffi 0.28.2 object/PyObject_TypeCheck().(op, addr_of_mutrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ptr/addr_of_mut!!(PyComplex_Typerust-analyzer cargo pyo3-ffi 0.28.2 PyComplex_Type.)) |
| 14 | } |
| 15 | |
| 16 | #[inline] |
| 17 | pub unsafe fn PyComplex_CheckExactrust-analyzer cargo pyo3-ffi 0.28.2 complexobject/PyComplex_CheckExact().(op: *mut PyObjectrust-analyzer cargo pyo3-ffi 0.28.2 object/PyObject#) -> c_intrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_int# { |
| 18 | Py_IS_TYPErust-analyzer cargo pyo3-ffi 0.28.2 object/Py_IS_TYPE().(op, addr_of_mutrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ptr/addr_of_mut!!(PyComplex_Typerust-analyzer cargo pyo3-ffi 0.28.2 PyComplex_Type.)) |
| 19 | } |
| 20 | |
| 21 | extern "C" { |
| 22 | // skipped non-limited PyComplex_FromCComplex |
| 23 | #[cfg_attr(PyPy, link_name = "PyPyComplex_FromDoubles")] |
| 24 | pub fn PyComplex_FromDoublesrust-analyzer cargo pyo3-ffi 0.28.2 PyComplex_FromDoubles().(real: c_doublerust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_double#, imag: c_doublerust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_double#) -> *mut PyObjectrust-analyzer cargo pyo3-ffi 0.28.2 object/PyObject#; |
| 25 | |
| 26 | #[cfg_attr(PyPy, link_name = "PyPyComplex_RealAsDouble")] |
| 27 | pub fn PyComplex_RealAsDoublerust-analyzer cargo pyo3-ffi 0.28.2 PyComplex_RealAsDouble().(op: *mut PyObjectrust-analyzer cargo pyo3-ffi 0.28.2 object/PyObject#) -> c_doublerust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_double#; |
| 28 | #[cfg_attr(PyPy, link_name = "PyPyComplex_ImagAsDouble")] |
| 29 | pub fn PyComplex_ImagAsDoublerust-analyzer cargo pyo3-ffi 0.28.2 PyComplex_ImagAsDouble().(op: *mut PyObjectrust-analyzer cargo pyo3-ffi 0.28.2 object/PyObject#) -> c_doublerust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_double#; |
| 30 | } |