[][src]Trait pyo3::PyObjectWithGIL

pub trait PyObjectWithGIL: Sized {
    fn py(&self) -> Python;
}

Any instance that is managed Python can have access to gil.

Originally, this was given to all classes with a PyToken field, but since PyToken was removed this is only given to native types.

Required methods

fn py(&self) -> Python

Loading content...

Implementors

impl PyObjectWithGIL for PyModule[src]

impl PyObjectWithGIL for PyRawObject[src]

impl PyObjectWithGIL for PyBool[src]

impl PyObjectWithGIL for PyByteArray[src]

impl PyObjectWithGIL for PyBytes[src]

impl PyObjectWithGIL for PyComplex[src]

impl PyObjectWithGIL for PyDate[src]

impl PyObjectWithGIL for PyDateTime[src]

impl PyObjectWithGIL for PyDelta[src]

impl PyObjectWithGIL for PyDict[src]

impl PyObjectWithGIL for PyFloat[src]

impl PyObjectWithGIL for PyFrozenSet[src]

impl PyObjectWithGIL for PyList[src]

impl PyObjectWithGIL for PyLong[src]

impl PyObjectWithGIL for PyObjectRef[src]

impl PyObjectWithGIL for PySequence[src]

impl PyObjectWithGIL for PySet[src]

impl PyObjectWithGIL for PySlice[src]

impl PyObjectWithGIL for PyString[src]

impl PyObjectWithGIL for PyTime[src]

impl PyObjectWithGIL for PyTuple[src]

impl PyObjectWithGIL for PyType[src]

impl PyObjectWithGIL for PyTzInfo[src]

Loading content...