pub struct _PyWeakReference {
pub ob_base: PyObject,
pub wr_object: *mut PyObject,
pub wr_callback: *mut PyObject,
pub hash: Py_hash_t,
pub wr_prev: *mut PyWeakReference,
pub wr_next: *mut PyWeakReference,
}
Available on non-
Py_LIMITED_API
and neither PyPy
nor GraalPy
only.Fields§
§ob_base: PyObject
§wr_object: *mut PyObject
§wr_callback: *mut PyObject
§hash: Py_hash_t
§wr_prev: *mut PyWeakReference
§wr_next: *mut PyWeakReference
Auto Trait Implementations§
impl Freeze for _PyWeakReference
impl RefUnwindSafe for _PyWeakReference
impl !Send for _PyWeakReference
impl !Sync for _PyWeakReference
impl Unpin for _PyWeakReference
impl UnwindSafe for _PyWeakReference
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more