Debian Codegraph @

src/pycapsule.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_charrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_char#, c_intrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_int#, c_voidrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/c_void#};
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 = "PyPyCapsule_Type")]
8 pub static mut PyCapsule_Typerust-analyzer cargo pyo3-ffi 0.28.2 PyCapsule_Type.: PyTypeObjectrust-analyzer cargo pyo3-ffi 0.28.2 object/PyTypeObject#;
9 }
10
11 pub type PyCapsule_Destructorrust-analyzer cargo pyo3-ffi 0.28.2 pycapsule/PyCapsule_Destructor# = unsafe extern "C" fn(o: *mut PyObjectrust-analyzer cargo pyo3-ffi 0.28.2 object/PyObject#);
12
13 #[inline]
14 pub unsafe fn PyCapsule_CheckExactrust-analyzer cargo pyo3-ffi 0.28.2 pycapsule/PyCapsule_CheckExact().(ob: *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().(ob) 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!!(PyCapsule_Typerust-analyzer cargo pyo3-ffi 0.28.2 PyCapsule_Type.)) as c_intrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_int#
16 }
17
18 extern "C" {
19 #[cfg_attr(PyPy, link_name = "PyPyCapsule_New")]
20 pub fn PyCapsule_Newrust-analyzer cargo pyo3-ffi 0.28.2 PyCapsule_New().(
21 pointer: *mut c_voidrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/c_void#,
22 name: *const c_charrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_char#,
23 destructor: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<PyCapsule_Destructorrust-analyzer cargo pyo3-ffi 0.28.2 pycapsule/PyCapsule_Destructor#>,
24 ) -> *mut PyObjectrust-analyzer cargo pyo3-ffi 0.28.2 object/PyObject#;
25 #[cfg_attr(PyPy, link_name = "PyPyCapsule_GetPointer")]
26 pub fn PyCapsule_GetPointerrust-analyzer cargo pyo3-ffi 0.28.2 PyCapsule_GetPointer().(capsule: *mut PyObjectrust-analyzer cargo pyo3-ffi 0.28.2 object/PyObject#, name: *const c_charrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_char#) -> *mut c_voidrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/c_void#;
27 #[cfg_attr(PyPy, link_name = "PyPyCapsule_GetDestructor")]
28 pub fn PyCapsule_GetDestructorrust-analyzer cargo pyo3-ffi 0.28.2 PyCapsule_GetDestructor().(capsule: *mut PyObjectrust-analyzer cargo pyo3-ffi 0.28.2 object/PyObject#) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<PyCapsule_Destructorrust-analyzer cargo pyo3-ffi 0.28.2 pycapsule/PyCapsule_Destructor#>;
29 #[cfg_attr(PyPy, link_name = "PyPyCapsule_GetName")]
30 pub fn PyCapsule_GetNamerust-analyzer cargo pyo3-ffi 0.28.2 PyCapsule_GetName().(capsule: *mut PyObjectrust-analyzer cargo pyo3-ffi 0.28.2 object/PyObject#) -> *const c_charrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_char#;
31 #[cfg_attr(PyPy, link_name = "PyPyCapsule_GetContext")]
32 pub fn PyCapsule_GetContextrust-analyzer cargo pyo3-ffi 0.28.2 PyCapsule_GetContext().(capsule: *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#;
33 #[cfg_attr(PyPy, link_name = "PyPyCapsule_IsValid")]
34 pub fn PyCapsule_IsValidrust-analyzer cargo pyo3-ffi 0.28.2 PyCapsule_IsValid().(capsule: *mut PyObjectrust-analyzer cargo pyo3-ffi 0.28.2 object/PyObject#, name: *const c_charrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_char#) -> c_intrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_int#;
35 #[cfg_attr(PyPy, link_name = "PyPyCapsule_SetPointer")]
36 pub fn PyCapsule_SetPointerrust-analyzer cargo pyo3-ffi 0.28.2 PyCapsule_SetPointer().(capsule: *mut PyObjectrust-analyzer cargo pyo3-ffi 0.28.2 object/PyObject#, pointer: *mut c_voidrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/c_void#) -> c_intrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_int#;
37 #[cfg_attr(PyPy, link_name = "PyPyCapsule_SetDestructor")]
38 pub fn PyCapsule_SetDestructorrust-analyzer cargo pyo3-ffi 0.28.2 PyCapsule_SetDestructor().(
39 capsule: *mut PyObjectrust-analyzer cargo pyo3-ffi 0.28.2 object/PyObject#,
40 destructor: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<PyCapsule_Destructorrust-analyzer cargo pyo3-ffi 0.28.2 pycapsule/PyCapsule_Destructor#>,
41 ) -> c_intrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_int#;
42 #[cfg_attr(PyPy, link_name = "PyPyCapsule_SetName")]
43 pub fn PyCapsule_SetNamerust-analyzer cargo pyo3-ffi 0.28.2 PyCapsule_SetName().(capsule: *mut PyObjectrust-analyzer cargo pyo3-ffi 0.28.2 object/PyObject#, name: *const c_charrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_char#) -> c_intrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_int#;
44 #[cfg_attr(PyPy, link_name = "PyPyCapsule_SetContext")]
45 pub fn PyCapsule_SetContextrust-analyzer cargo pyo3-ffi 0.28.2 PyCapsule_SetContext().(capsule: *mut PyObjectrust-analyzer cargo pyo3-ffi 0.28.2 object/PyObject#, context: *mut c_voidrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/c_void#) -> c_intrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_int#;
46 #[cfg_attr(PyPy, link_name = "PyPyCapsule_Import")]
47 pub fn PyCapsule_Importrust-analyzer cargo pyo3-ffi 0.28.2 PyCapsule_Import().(name: *const c_charrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_char#, no_block: c_intrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_int#) -> *mut c_voidrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/c_void#;
48 }