[][src]Trait pyo3::typeob::PyTypeCreate

pub trait PyTypeCreate: PyObjectAlloc<Self> + PyTypeInfo + Sized {
    fn init_type() { ... }
fn type_object() -> Py<PyType> { ... }
#[must_use]
fn create(py: Python) -> PyResult<PyRawObject> { ... } }

Python object types that have a corresponding type object and be instanciated with Self::create()

Provided methods

fn init_type()

fn type_object() -> Py<PyType>

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

Create PyRawObject which can be initialized with rust value

Loading content...

Implementors

impl PyTypeCreate for PyModule[src]

impl PyTypeCreate for PyBool[src]

impl PyTypeCreate for PyByteArray[src]

impl PyTypeCreate for PyBytes[src]

impl PyTypeCreate for PyComplex[src]

impl PyTypeCreate for PyDate[src]

impl PyTypeCreate for PyDateTime[src]

impl PyTypeCreate for PyDelta[src]

impl PyTypeCreate for PyDict[src]

impl PyTypeCreate for PyFloat[src]

impl PyTypeCreate for PyFrozenSet[src]

impl PyTypeCreate for PyList[src]

impl PyTypeCreate for PyLong[src]

impl PyTypeCreate for PyObjectRef[src]

impl PyTypeCreate for PySet[src]

impl PyTypeCreate for PySlice[src]

impl PyTypeCreate for PyString[src]

impl PyTypeCreate for PyTime[src]

impl PyTypeCreate for PyTuple[src]

impl PyTypeCreate for PyType[src]

impl PyTypeCreate for PyTzInfo[src]

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

Loading content...