pub trait PyClassWeakRef: Sealed {
const INIT: Self;
// Provided method
unsafe fn clear_weakrefs(&mut self, _obj: *mut PyObject, _py: Python<'_>) { ... }
}Expand description
Represents the __weakref__ field for #[pyclass].
Required Associated Constants§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".