[][src]Trait pyo3::pyclass::PyClass

pub trait PyClass: PyTypeInfo<ConcreteLayout = PyClassShell<Self>> + Sized + PyClassAlloc + PyMethodsProtocol {
    type Dict: PyClassDict;
    type WeakRef: PyClassWeakRef;
}

If PyClass is implemented for T, then we can use T in the Python world, via PyClassShell.

The #[pyclass] attribute automatically implements this trait for your Rust struct, so you don't have to use this trait directly.

Associated Types

Loading content...

Implementors

Loading content...