[][src]Trait pyo3::PyNativeType

pub unsafe trait PyNativeType: Sized {
    fn py(&self) -> Python { ... }
}

Types that are built into the python interpreter.

pyo3 is designed in a way that that all references to those types are bound to the GIL, which is why you can get a token from all references of those types.

Provided methods

fn py(&self) -> Python

Loading content...

Implementors

impl PyNativeType for PyModule[src]

fn py(&self) -> Python[src]

impl PyNativeType for PyRawObject[src]

fn py(&self) -> Python[src]

impl PyNativeType for PyAny[src]

fn py(&self) -> Python[src]

impl PyNativeType for PyBool[src]

fn py(&self) -> Python[src]

impl PyNativeType for PyByteArray[src]

fn py(&self) -> Python[src]

impl PyNativeType for PyBytes[src]

fn py(&self) -> Python[src]

impl PyNativeType for PyComplex[src]

fn py(&self) -> Python[src]

impl PyNativeType for PyDate[src]

fn py(&self) -> Python[src]

impl PyNativeType for PyDateTime[src]

fn py(&self) -> Python[src]

impl PyNativeType for PyDelta[src]

fn py(&self) -> Python[src]

impl PyNativeType for PyDict[src]

fn py(&self) -> Python[src]

impl PyNativeType for PyFloat[src]

fn py(&self) -> Python[src]

impl PyNativeType for PyFrozenSet[src]

fn py(&self) -> Python[src]

impl PyNativeType for PyList[src]

fn py(&self) -> Python[src]

impl PyNativeType for PyLong[src]

fn py(&self) -> Python[src]

impl PyNativeType for PySequence[src]

fn py(&self) -> Python[src]

impl PyNativeType for PySet[src]

fn py(&self) -> Python[src]

impl PyNativeType for PySlice[src]

fn py(&self) -> Python[src]

impl PyNativeType for PyString[src]

fn py(&self) -> Python[src]

impl PyNativeType for PyTime[src]

fn py(&self) -> Python[src]

impl PyNativeType for PyTuple[src]

fn py(&self) -> Python[src]

impl PyNativeType for PyType[src]

fn py(&self) -> Python[src]

impl PyNativeType for PyTzInfo[src]

fn py(&self) -> Python[src]

Loading content...