pyo3_ffi/cpython/
weakrefobject.rs

1#[cfg(not(any(PyPy, GraalPy)))]
2pub struct _PyWeakReference {
3    pub ob_base: crate::PyObject,
4    pub wr_object: *mut crate::PyObject,
5    pub wr_callback: *mut crate::PyObject,
6    pub hash: crate::Py_hash_t,
7    pub wr_prev: *mut crate::PyWeakReference,
8    pub wr_next: *mut crate::PyWeakReference,
9    #[cfg(Py_3_11)]
10    pub vectorcall: Option<crate::vectorcallfunc>,
11    #[cfg(all(Py_3_13, Py_GIL_DISABLED))]
12    pub weakrefs_lock: *mut crate::PyMutex,
13}
14
15// skipped _PyWeakref_GetWeakrefCount
16// skipped _PyWeakref_ClearRef
17// skipped PyWeakRef_GET_OBJECT