Struct rustypy::pytypes::pytuple::PyTuple [] [src]

pub struct PyTuple {
    pub elem: PyArg,
    pub idx: usize,
    pub next: Option<Box<PyTuple>>,
}

An analog of a Python tuple, will accept an undefined number of other supported types.

Read the module docs for more information.

Fields

Methods

impl<'a> PyTuple
[src]

Get a PyTuple from a previously boxed raw pointer.

Returns the length of the tuple.

Returns self as raw pointer. Use this method when returning a PyTuple to Python.

Methods from Deref<Target = PyArg>

Trait Implementations

impl Clone for PyTuple
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for PyTuple
[src]

Formats the value using the given formatter.

impl PartialEq for PyTuple
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

impl Deref for PyTuple
[src]

The resulting type after dereferencing

The method called to dereference a value

impl From<PyArg> for PyTuple
[src]

Performs the conversion.