[][src]Trait pyo3::type_object::PyTypeCreate

pub trait PyTypeCreate: PyObjectAlloc + PyTypeObject + Sized {
#[must_use]
    fn create(py: Python) -> PyResult<PyRawObject> { ... }
}

Python object types that can be instanciated with Self::create()

We can't just make this a part of PyTypeObject because exceptions have no PyTypeInfo

Provided methods

#[must_use] fn create(py: Python) -> PyResult<PyRawObject>

Create PyRawObject which can be initialized with rust value

Loading content...

Implementors

impl<T> PyTypeCreate for T where
    T: PyObjectAlloc + PyTypeObject + Sized
[src]

Loading content...