[][src]Trait pyo3::IntoPyTuple

pub trait IntoPyTuple {
    fn into_tuple(self, py: Python) -> Py<PyTuple>;
}

Conversion trait that allows various objects to be converted into PyTuple object.

Required methods

fn into_tuple(self, py: Python) -> Py<PyTuple>

Converts self into a PyTuple object.

Loading content...

Implementations on Foreign Types

impl IntoPyTuple for ()[src]

Converts () to an empty Python tuple.

impl<'a> IntoPyTuple for &'a str[src]

impl<A: IntoPyObject> IntoPyTuple for (A,)[src]

impl<A: IntoPyObject, B: IntoPyObject> IntoPyTuple for (A, B)[src]

impl<A: IntoPyObject, B: IntoPyObject, C: IntoPyObject> IntoPyTuple for (A, B, C)[src]

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

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

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

impl<A: IntoPyObject, B: IntoPyObject, C: IntoPyObject, D: IntoPyObject, E: IntoPyObject, F: IntoPyObject, G: IntoPyObject> IntoPyTuple 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> IntoPyTuple 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> IntoPyTuple for (A, B, C, D, E, F, G, H, I)[src]

Loading content...

Implementors

impl IntoPyTuple for NoArgs[src]

Converts NoArgs to an empty Python tuple.

impl IntoPyTuple for Py<PyTuple>[src]

impl<'a> IntoPyTuple for &'a PyTuple[src]

Loading content...