Trait pyo3::pyclass_slots::PyClassDict
source · [−]pub trait PyClassDict {
const IS_DUMMY: bool = true;
fn new() -> Self;
fn __private__(&self) -> PrivateMarker;
fn clear_dict(&mut self, _py: Python<'_>) { ... }
}
Expand description
Represents the __dict__
field for #[pyclass]
.
Provided Associated Constants
Required Methods
fn __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
fn clear_dict(&mut self, _py: Python<'_>)
fn clear_dict(&mut self, _py: Python<'_>)
Empties the dictionary of its key-value pairs.