Struct pyo3::pyclass_slots::PyClassWeakRefSlot
source · [−]#[repr(transparent)]pub struct PyClassWeakRefSlot(_);
Expand description
Actual weakref field, which holds the pointer to __weakref__
.
#[pyclass(weakref)]
automatically adds this.
Trait Implementations
sourceimpl PyClassWeakRef for PyClassWeakRefSlot
impl PyClassWeakRef for PyClassWeakRefSlot
sourceunsafe fn clear_weakrefs(&mut self, obj: *mut PyObject, _py: Python<'_>)
unsafe fn clear_weakrefs(&mut self, obj: *mut PyObject, _py: Python<'_>)
Clears the weak references to the given object. Read more
sourcefn __private__(&self) -> PrivateMarker
fn __private__(&self) -> PrivateMarker
This trait is private to implement; this method exists to make it impossible to implement outside the crate. Read more
Auto Trait Implementations
impl RefUnwindSafe for PyClassWeakRefSlot
impl !Send for PyClassWeakRefSlot
impl !Sync for PyClassWeakRefSlot
impl Unpin for PyClassWeakRefSlot
impl UnwindSafe for PyClassWeakRefSlot
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more