#[repr(C)]pub struct PyWeakReference {
pub ob_refcnt: Py_ssize_t,
pub ob_type: *mut PyTypeObject,
pub wr_object: *mut PyObject,
pub wr_callback: *mut PyObject,
pub hash: c_long,
pub wr_prev: *mut PyWeakReference,
pub wr_next: *mut PyWeakReference,
}
Fields§
§ob_refcnt: Py_ssize_t
§ob_type: *mut PyTypeObject
§wr_object: *mut PyObject
§wr_callback: *mut PyObject
§hash: c_long
§wr_prev: *mut PyWeakReference
§wr_next: *mut PyWeakReference
Trait Implementations§
Source§impl Clone for PyWeakReference
impl Clone for PyWeakReference
Source§fn clone(&self) -> PyWeakReference
fn clone(&self) -> PyWeakReference
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for 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