pub trait PyClassDict: Sealed {
const INIT: Self;
// Provided method
fn clear_dict(&mut self, _py: Python<'_>) { ... }
}
Expand description
Represents the __dict__
field for #[pyclass]
.
Required Associated Constants§
Provided Methods§
Sourcefn clear_dict(&mut self, _py: Python<'_>)
fn clear_dict(&mut self, _py: Python<'_>)
Empties the dictionary of its key-value pairs.
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.