[−][src]Trait pyo3::type_object::PyTypeCreate
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>
#[must_use]
fn create(py: Python) -> PyResult<PyRawObject>Create PyRawObject which can be initialized with rust value
Implementors
impl<T> PyTypeCreate for T where
T: PyObjectAlloc + PyTypeObject + Sized,
[src]
T: PyObjectAlloc + PyTypeObject + Sized,
#[must_use]
fn create(py: Python) -> PyResult<PyRawObject>
[src]
#[must_use]
fn create(py: Python) -> PyResult<PyRawObject>