[][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 and there's currently no corresponding std::convert::From part.

Required methods

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

Loading content...

Implementations on Foreign Types

impl IntoPy<Py<PyTuple>> for ()[src]

Converts () to an empty Python tuple.

impl<'a> IntoPy<Py<PyTuple>> for &'a str[src]

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 IntoPy<Py<PyTuple>> for NoArgs[src]

Converts NoArgs to an empty Python tuple.

impl IntoPy<Py<PyTuple>> for Py<PyTuple>[src]

impl<'a> IntoPy<Py<PyTuple>> for &'a PyTuple[src]

Loading content...