Trait pyo3::pyclass::PyClass

source ·
pub trait PyClass: PyTypeInfo<AsRefTarget = PyCell<Self>> + PyClassImpl {
    type Frozen: Frozen;
}
Expand description

Types that can be used as Python classes.

The #[pyclass] attribute implements this trait for your Rust struct - you shouldn’t implement this trait directly.

Required Associated Types§

source

type Frozen: Frozen

Whether the pyclass is frozen.

This can be enabled via #[pyclass(frozen)].

Object Safety§

This trait is not object safe.

Implementors§

source§

impl PyClass for Coroutine

Available on crate feature experimental-async only.
⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here