Struct pyo3::PyTuple [] [src]

pub struct PyTuple(_);

Represents a Python tuple object.

Methods

impl PyTuple
[src]

[src]

Construct a new tuple with the given elements.

[src]

Retrieves the empty tuple.

[src]

Gets the length of the tuple.

[src]

Check if tuple is empty.

[src]

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

[src]

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

[src]

Gets the item at the specified index.

Panics if the index is out of range.

[src]

[src]

Returns an iterator over the tuple items.

Trait Implementations

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

[src]

Performs the conversion.

impl AsRef<PyObjectRef> for PyTuple
[src]

[src]

Performs the conversion.

impl PyObjectWithToken for PyTuple
[src]

[src]

impl ToPyPointer for PyTuple
[src]

[src]

Gets the underlying FFI pointer, returns a borrowed pointer.

impl PartialEq for PyTuple
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl PyTypeInfo for PyTuple
[src]

Type of objects to store in PyObject struct

Base class

NAME: &'static str = "PyTuple"

Class name

SIZE: usize = ::std::mem::size_of::<::ffi::PyObject>()

Size of the rust PyObject structure (PyObject + rust structure)

OFFSET: isize = 0

Type instance offset inside PyObject structure

[src]

PyTypeObject instance for this type

[src]

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

DESCRIPTION: &'static str = "\u{0}"

Class doc string

FLAGS: usize = 0

Type flags (ie PY_TYPE_FLAG_GC, PY_TYPE_FLAG_WEAKREF)

[src]

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

impl PyTypeObject for PyTuple
[src]

[src]

Initialize type object

[src]

Retrieves the type object for this Python object type.

[src]

Create PyRawObject which can be initialized with rust value

impl ToPyObject for PyTuple
[src]

[src]

Converts self into a Python object.

impl ToBorrowedObject for PyTuple
[src]

[src]

Converts self into a Python object and calls the specified closure on the native FFI pointer underlying the Python object. Read more

impl Debug for PyTuple
[src]

[src]

Formats the value using the given formatter. Read more

impl Display for PyTuple
[src]

[src]

Formats the value using the given formatter. Read more

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

[src]

Extracts Self from the source PyObject.

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

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

[src]

Creates an iterator from a value. Read more

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

[src]

Converts self into a PyTuple object.

Auto Trait Implementations

impl Send for PyTuple

impl Sync for PyTuple