| 1 | use craterust-analyzer cargo pyo3-ffi 0.28.2 crate/::objectrust-analyzer cargo pyo3-ffi 0.28.2 object/::*; |
| 2 | use craterust-analyzer cargo pyo3-ffi 0.28.2 crate/::pyportrust-analyzer cargo pyo3-ffi 0.28.2 pyport/::Py_ssize_trust-analyzer cargo pyo3-ffi 0.28.2 pyport/Py_ssize_t#; |
| 3 | use libcrust-analyzer cargo libc 0.2.182 crate/::size_trust-analyzer cargo libc 0.2.182 unix/size_t#; |
| 4 | 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_charrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_char#, 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#, c_longrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_long#, c_longlongrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_longlong#, c_ulongrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_ulong#, c_ulonglongrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_ulonglong#, c_voidrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/c_void#}; |
| 5 | 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!; |
| 6 | |
| 7 | opaque_structrust-analyzer cargo pyo3-ffi 0.28.2 opaque_struct!!(pub PyLongObjectrust-analyzer cargo pyo3-ffi 0.28.2 longobject/PyLongObject#); |
| 8 | |
| 9 | #[inline] |
| 10 | pub unsafe fn PyLong_Checkrust-analyzer cargo pyo3-ffi 0.28.2 longobject/PyLong_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# { |
| 11 | PyType_FastSubclassrust-analyzer cargo pyo3-ffi 0.28.2 object/PyType_FastSubclass().(Py_TYPErust-analyzer cargo pyo3-ffi 0.28.2 object/Py_TYPE().(op), Py_TPFLAGS_LONG_SUBCLASSrust-analyzer cargo pyo3-ffi 0.28.2 object/Py_TPFLAGS_LONG_SUBCLASS.) |
| 12 | } |
| 13 | |
| 14 | #[inline] |
| 15 | pub unsafe fn PyLong_CheckExactrust-analyzer cargo pyo3-ffi 0.28.2 longobject/PyLong_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# { |
| 16 | (Py_TYPErust-analyzer cargo pyo3-ffi 0.28.2 object/Py_TYPE().(op) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ptr/mut_ptr/impl#[`*mut T`][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ptr/mut_ptr/impl#[`*mut T`][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ptr/mut_ptr/impl#[`*mut T`][`PartialEq<Self>`]eq().addr_of_mutrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ptr/addr_of_mut!!(PyLong_Typerust-analyzer cargo pyo3-ffi 0.28.2 PyLong_Type.)) as c_intrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_int# |
| 17 | } |
| 18 | |
| 19 | extern "C" { |
| 20 | #[cfg_attr(PyPy, link_name = "PyPyLong_FromLong")] |
| 21 | pub fn PyLong_FromLongrust-analyzer cargo pyo3-ffi 0.28.2 PyLong_FromLong().(arg1: c_longrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_long#) -> *mut PyObjectrust-analyzer cargo pyo3-ffi 0.28.2 object/PyObject#; |
| 22 | #[cfg_attr(PyPy, link_name = "PyPyLong_FromUnsignedLong")] |
| 23 | pub fn PyLong_FromUnsignedLongrust-analyzer cargo pyo3-ffi 0.28.2 PyLong_FromUnsignedLong().(arg1: c_ulongrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_ulong#) -> *mut PyObjectrust-analyzer cargo pyo3-ffi 0.28.2 object/PyObject#; |
| 24 | #[cfg_attr(PyPy, link_name = "PyPyLong_FromSize_t")] |
| 25 | pub fn PyLong_FromSize_trust-analyzer cargo pyo3-ffi 0.28.2 PyLong_FromSize_t().(arg1: size_trust-analyzer cargo libc 0.2.182 unix/size_t#) -> *mut PyObjectrust-analyzer cargo pyo3-ffi 0.28.2 object/PyObject#; |
| 26 | #[cfg_attr(PyPy, link_name = "PyPyLong_FromSsize_t")] |
| 27 | pub fn PyLong_FromSsize_trust-analyzer cargo pyo3-ffi 0.28.2 PyLong_FromSsize_t().(arg1: Py_ssize_trust-analyzer cargo pyo3-ffi 0.28.2 pyport/Py_ssize_t#) -> *mut PyObjectrust-analyzer cargo pyo3-ffi 0.28.2 object/PyObject#; |
| 28 | #[cfg_attr(PyPy, link_name = "PyPyLong_FromDouble")] |
| 29 | pub fn PyLong_FromDoublerust-analyzer cargo pyo3-ffi 0.28.2 PyLong_FromDouble().(arg1: 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#; |
| 30 | #[cfg_attr(PyPy, link_name = "PyPyLong_AsLong")] |
| 31 | pub fn PyLong_AsLongrust-analyzer cargo pyo3-ffi 0.28.2 PyLong_AsLong().(arg1: *mut PyObjectrust-analyzer cargo pyo3-ffi 0.28.2 object/PyObject#) -> c_longrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_long#; |
| 32 | #[cfg_attr(PyPy, link_name = "PyPyLong_AsLongAndOverflow")] |
| 33 | pub fn PyLong_AsLongAndOverflowrust-analyzer cargo pyo3-ffi 0.28.2 PyLong_AsLongAndOverflow().(arg1: *mut PyObjectrust-analyzer cargo pyo3-ffi 0.28.2 object/PyObject#, arg2: *mut c_intrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_int#) -> c_longrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_long#; |
| 34 | #[cfg_attr(PyPy, link_name = "PyPyLong_AsSsize_t")] |
| 35 | pub fn PyLong_AsSsize_trust-analyzer cargo pyo3-ffi 0.28.2 PyLong_AsSsize_t().(arg1: *mut PyObjectrust-analyzer cargo pyo3-ffi 0.28.2 object/PyObject#) -> Py_ssize_trust-analyzer cargo pyo3-ffi 0.28.2 pyport/Py_ssize_t#; |
| 36 | #[cfg_attr(PyPy, link_name = "PyPyLong_AsSize_t")] |
| 37 | pub fn PyLong_AsSize_trust-analyzer cargo pyo3-ffi 0.28.2 PyLong_AsSize_t().(arg1: *mut PyObjectrust-analyzer cargo pyo3-ffi 0.28.2 object/PyObject#) -> size_trust-analyzer cargo libc 0.2.182 unix/size_t#; |
| 38 | #[cfg_attr(PyPy, link_name = "PyPyLong_AsUnsignedLong")] |
| 39 | pub fn PyLong_AsUnsignedLongrust-analyzer cargo pyo3-ffi 0.28.2 PyLong_AsUnsignedLong().(arg1: *mut PyObjectrust-analyzer cargo pyo3-ffi 0.28.2 object/PyObject#) -> c_ulongrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_ulong#; |
| 40 | #[cfg_attr(PyPy, link_name = "PyPyLong_AsUnsignedLongMask")] |
| 41 | pub fn PyLong_AsUnsignedLongMaskrust-analyzer cargo pyo3-ffi 0.28.2 PyLong_AsUnsignedLongMask().(arg1: *mut PyObjectrust-analyzer cargo pyo3-ffi 0.28.2 object/PyObject#) -> c_ulongrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_ulong#; |
| 42 | // skipped non-limited _PyLong_AsInt |
| 43 | pub fn PyLong_GetInforust-analyzer cargo pyo3-ffi 0.28.2 PyLong_GetInfo().() -> *mut PyObjectrust-analyzer cargo pyo3-ffi 0.28.2 object/PyObject#; |
| 44 | // skipped PyLong_AS_LONG |
| 45 | |
| 46 | // skipped PyLong_FromPid |
| 47 | // skipped PyLong_AsPid |
| 48 | // skipped _Py_PARSE_INTPTR |
| 49 | // skipped _Py_PARSE_UINTPTR |
| 50 | |
| 51 | // skipped non-limited _PyLong_UnsignedShort_Converter |
| 52 | // skipped non-limited _PyLong_UnsignedInt_Converter |
| 53 | // skipped non-limited _PyLong_UnsignedLong_Converter |
| 54 | // skipped non-limited _PyLong_UnsignedLongLong_Converter |
| 55 | // skipped non-limited _PyLong_Size_t_Converter |
| 56 | |
| 57 | // skipped non-limited _PyLong_DigitValue |
| 58 | // skipped non-limited _PyLong_Frexp |
| 59 | |
| 60 | #[cfg_attr(PyPy, link_name = "PyPyLong_AsDouble")] |
| 61 | pub fn PyLong_AsDoublerust-analyzer cargo pyo3-ffi 0.28.2 PyLong_AsDouble().(arg1: *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#; |
| 62 | #[cfg_attr(PyPy, link_name = "PyPyLong_FromVoidPtr")] |
| 63 | pub fn PyLong_FromVoidPtrrust-analyzer cargo pyo3-ffi 0.28.2 PyLong_FromVoidPtr().(arg1: *mut c_voidrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/c_void#) -> *mut PyObjectrust-analyzer cargo pyo3-ffi 0.28.2 object/PyObject#; |
| 64 | #[cfg_attr(PyPy, link_name = "PyPyLong_AsVoidPtr")] |
| 65 | pub fn PyLong_AsVoidPtrrust-analyzer cargo pyo3-ffi 0.28.2 PyLong_AsVoidPtr().(arg1: *mut PyObjectrust-analyzer cargo pyo3-ffi 0.28.2 object/PyObject#) -> *mut c_voidrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/c_void#; |
| 66 | #[cfg_attr(PyPy, link_name = "PyPyLong_FromLongLong")] |
| 67 | pub fn PyLong_FromLongLongrust-analyzer cargo pyo3-ffi 0.28.2 PyLong_FromLongLong().(arg1: c_longlongrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_longlong#) -> *mut PyObjectrust-analyzer cargo pyo3-ffi 0.28.2 object/PyObject#; |
| 68 | #[cfg_attr(PyPy, link_name = "PyPyLong_FromUnsignedLongLong")] |
| 69 | pub fn PyLong_FromUnsignedLongLongrust-analyzer cargo pyo3-ffi 0.28.2 PyLong_FromUnsignedLongLong().(arg1: c_ulonglongrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_ulonglong#) -> *mut PyObjectrust-analyzer cargo pyo3-ffi 0.28.2 object/PyObject#; |
| 70 | #[cfg_attr(PyPy, link_name = "PyPyLong_AsLongLong")] |
| 71 | pub fn PyLong_AsLongLongrust-analyzer cargo pyo3-ffi 0.28.2 PyLong_AsLongLong().(arg1: *mut PyObjectrust-analyzer cargo pyo3-ffi 0.28.2 object/PyObject#) -> c_longlongrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_longlong#; |
| 72 | #[cfg_attr(PyPy, link_name = "PyPyLong_AsUnsignedLongLong")] |
| 73 | pub fn PyLong_AsUnsignedLongLongrust-analyzer cargo pyo3-ffi 0.28.2 PyLong_AsUnsignedLongLong().(arg1: *mut PyObjectrust-analyzer cargo pyo3-ffi 0.28.2 object/PyObject#) -> c_ulonglongrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_ulonglong#; |
| 74 | #[cfg_attr(PyPy, link_name = "PyPyLong_AsUnsignedLongLongMask")] |
| 75 | pub fn PyLong_AsUnsignedLongLongMaskrust-analyzer cargo pyo3-ffi 0.28.2 PyLong_AsUnsignedLongLongMask().(arg1: *mut PyObjectrust-analyzer cargo pyo3-ffi 0.28.2 object/PyObject#) -> c_ulonglongrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_ulonglong#; |
| 76 | #[cfg_attr(PyPy, link_name = "PyPyLong_AsLongLongAndOverflow")] |
| 77 | pub fn PyLong_AsLongLongAndOverflowrust-analyzer cargo pyo3-ffi 0.28.2 PyLong_AsLongLongAndOverflow().(arg1: *mut PyObjectrust-analyzer cargo pyo3-ffi 0.28.2 object/PyObject#, arg2: *mut c_intrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_int#) -> c_longlongrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_longlong#; |
| 78 | #[cfg_attr(PyPy, link_name = "PyPyLong_FromString")] |
| 79 | pub fn PyLong_FromStringrust-analyzer cargo pyo3-ffi 0.28.2 PyLong_FromString().( |
| 80 | arg1: *const c_charrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_char#, |
| 81 | arg2: *mut *mut c_charrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_char#, |
| 82 | arg3: c_intrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_int#, |
| 83 | ) -> *mut PyObjectrust-analyzer cargo pyo3-ffi 0.28.2 object/PyObject#; |
| 84 | } |
| 85 | |
| 86 | #[cfg(not(Py_LIMITED_API))] |
| 87 | extern "C" { |
| 88 | #[cfg_attr(PyPy, link_name = "_PyPyLong_NumBits")] |
| 89 | pub fn _PyLong_NumBits(obj: *mut PyObjectrust-analyzer cargo pyo3-ffi 0.28.2 object/PyObject#) -> size_trust-analyzer cargo libc 0.2.182 unix/size_t#; |
| 90 | } |
| 91 | |
| 92 | // skipped non-limited _PyLong_Format |
| 93 | // skipped non-limited _PyLong_FormatWriter |
| 94 | // skipped non-limited _PyLong_FormatBytesWriter |
| 95 | // skipped non-limited _PyLong_FormatAdvancedWriter |
| 96 | |
| 97 | extern "C" { |
| 98 | pub fn PyOS_strtoulrust-analyzer cargo pyo3-ffi 0.28.2 PyOS_strtoul().(arg1: *const c_charrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_char#, arg2: *mut *mut c_charrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_char#, arg3: c_intrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_int#) -> c_ulongrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_ulong#; |
| 99 | pub fn PyOS_strtolrust-analyzer cargo pyo3-ffi 0.28.2 PyOS_strtol().(arg1: *const c_charrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_char#, arg2: *mut *mut c_charrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_char#, arg3: c_intrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_int#) -> c_longrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_long#; |
| 100 | } |
| 101 | |
| 102 | // skipped non-limited _PyLong_Rshift |
| 103 | // skipped non-limited _PyLong_Lshift |