# pyo3::pyclass_slots::PyClassDict - Rust
Represents `__dict__` field for `#[pyclass]`.
Keywords: rust, rustlang, rust-lang, PyClassDict

# Trait pyo3::pyclass_slots::PyClassDict [−] [src]

    pub trait PyClassDict {
        const IS_DUMMY: bool;

        fn new() -> Self;
        fn __private__(&self) -> PrivateMarker;

        fn clear_dict(&mut self, _py: Python<'_>) { ... }
    }

Represents `__dict__` field for `#[pyclass]`.

## Associated Constants

### `const IS_DUMMY: bool` [src]

Loading content...

## Required methods

### `fn new() -> Self` [src]

### `fn __private__(&self) -> PrivateMarker` [src]

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

Loading content...

## Provided methods

### `fn clear_dict(&mut self, _py: Python<'_>)` [src]

Loading content...

## Implementors

### `impl PyClassDict for PyClassDictSlot` [src]

#### `const IS_DUMMY: bool` [src]

#### `fn new() -> Self` [src]

#### `fn clear_dict(&mut self, _py: Python<'_>)` [src]

### `impl PyClassDict for PyClassDummySlot` [src]

#### `fn new() -> Self` [src]

Loading content...