[][src]Struct pyo3::types::PyTuple

#[repr(transparent)]
pub struct PyTuple(_);

Represents a Python tuple object.

Methods

impl PyTuple
[src]

Construct a new tuple with the given elements.

Retrieves the empty tuple.

Gets the length of the tuple.

Check if tuple is empty.

Take a slice of the tuple pointed to by p from low to high and return it as a new tuple.

Take a slice of the tuple pointed to by p from low and return it as a new tuple.

Gets the item at the specified index.

Panics if the index is out of range.

Returns an iterator over the tuple items.

Trait Implementations

impl ToPyObject for PyTuple
[src]

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

impl PyObjectWithGIL for PyTuple
[src]

impl ToPyPointer for PyTuple
[src]

Gets the underlying FFI pointer, returns a borrowed pointer.

impl PyTypeInfo for PyTuple
[src]

Type of objects to store in PyObject struct

Base class

Class doc string

Type flags (ie PY_TYPE_FLAG_GC, PY_TYPE_FLAG_WEAKREF)

Check if *mut ffi::PyObject is exact instance of this type

impl PyObjectAlloc for PyTuple
[src]

Calls the rust destructor for the object and frees the memory (usually by calling ptr->ob_type->tp_free). This function is used as tp_dealloc implementation. Read more

Calls the rust destructor for the object.

impl PyTypeCreate for PyTuple
[src]

Create PyRawObject which can be initialized with rust value

impl<'a> From<&'a PyTuple> for &'a PyObjectRef
[src]

impl AsRef<PyObjectRef> for PyTuple
[src]

impl PartialEq<PyTuple> for PyTuple
[src]

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?

impl Display for PyTuple
[src]

impl Debug for PyTuple
[src]

Auto Trait Implementations

impl Send for PyTuple

impl Sync for PyTuple

Blanket Implementations

impl<T> PyObjectAlloc for T where
    T: PyObjectWithFreeList
[src]

Calls the rust destructor for the object.

impl<T> PyTypeObject for T where
    T: PyTypeCreate
[src]

impl<T> PyTypeCreate for T where
    T: PyObjectAlloc + PyTypeInfo
[src]

Create PyRawObject which can be initialized with rust value

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]