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

Whether this __dict__ field is capable of holding a dictionary.

Required Methods

Initializes a PyObject __dict__ reference.

This trait is private to implement; this method exists to make it impossible to implement outside the crate.

Provided Methods

Empties the dictionary of its key-value pairs.

Implementors