[][src]Trait pyo3::IntoPy

pub trait IntoPy<T>: Sized {
    fn into_py(self, py: Python) -> T;
}

Similar to std::convert::Into, just that it requires a gil token.

Required methods

fn into_py(self, py: Python) -> T

Performs the conversion.

Loading content...

Implementations on Foreign Types

impl<A: IntoPyObject> IntoPy<Py<PyTuple>> for (A,)[src]

impl<A: IntoPyObject, B: IntoPyObject> IntoPy<Py<PyTuple>> for (A, B)[src]

impl<A: IntoPyObject, B: IntoPyObject, C: IntoPyObject> IntoPy<Py<PyTuple>> for (A, B, C)[src]

impl<A: IntoPyObject, B: IntoPyObject, C: IntoPyObject, D: IntoPyObject> IntoPy<Py<PyTuple>> for (A, B, C, D)[src]

impl<A: IntoPyObject, B: IntoPyObject, C: IntoPyObject, D: IntoPyObject, E: IntoPyObject> IntoPy<Py<PyTuple>> for (A, B, C, D, E)[src]

impl<A: IntoPyObject, B: IntoPyObject, C: IntoPyObject, D: IntoPyObject, E: IntoPyObject, F: IntoPyObject> IntoPy<Py<PyTuple>> for (A, B, C, D, E, F)[src]

impl<A: IntoPyObject, B: IntoPyObject, C: IntoPyObject, D: IntoPyObject, E: IntoPyObject, F: IntoPyObject, G: IntoPyObject> IntoPy<Py<PyTuple>> for (A, B, C, D, E, F, G)[src]

impl<A: IntoPyObject, B: IntoPyObject, C: IntoPyObject, D: IntoPyObject, E: IntoPyObject, F: IntoPyObject, G: IntoPyObject, H: IntoPyObject> IntoPy<Py<PyTuple>> for (A, B, C, D, E, F, G, H)[src]

impl<A: IntoPyObject, B: IntoPyObject, C: IntoPyObject, D: IntoPyObject, E: IntoPyObject, F: IntoPyObject, G: IntoPyObject, H: IntoPyObject, I: IntoPyObject> IntoPy<Py<PyTuple>> for (A, B, C, D, E, F, G, H, I)[src]

Loading content...

Implementors

impl<T, U> IntoPy<U> for T where
    U: FromPy<T>, 
[src]

Loading content...