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