Debian Codegraph @

src/rangeobject.rs

raw symbols SCIP
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_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 = "PyPyRange_Type")]
8 pub static mut PyRange_Typerust-analyzer cargo pyo3-ffi 0.28.2 PyRange_Type.: PyTypeObjectrust-analyzer cargo pyo3-ffi 0.28.2 object/PyTypeObject#;
9 pub static mut PyRangeIter_Typerust-analyzer cargo pyo3-ffi 0.28.2 PyRangeIter_Type.: PyTypeObjectrust-analyzer cargo pyo3-ffi 0.28.2 object/PyTypeObject#;
10 pub static mut PyLongRangeIter_Typerust-analyzer cargo pyo3-ffi 0.28.2 PyLongRangeIter_Type.: PyTypeObjectrust-analyzer cargo pyo3-ffi 0.28.2 object/PyTypeObject#;
11 }
12
13 #[inline]
14 pub unsafe fn PyRange_Checkrust-analyzer cargo pyo3-ffi 0.28.2 rangeobject/PyRange_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# {
15 (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!!(PyRange_Typerust-analyzer cargo pyo3-ffi 0.28.2 PyRange_Type.)) as c_intrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_int#
16 }