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

pub struct PyTuple { /* fields omitted */ }

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

Read the module docs for more information.

Methods

impl<'a> PyTuple[src]

pub unsafe fn from_ptr(ptr: *mut PyTuple) -> PyTuple[src]

Get a PyTuple from a previously boxed raw pointer.

pub fn len(&self) -> usize[src]

Returns the length of the tuple.

pub fn into_raw(self) -> *mut PyTuple[src]

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

Methods from Deref<Target = PyArg>

Trait Implementations

impl AsRef<PyTuple> for PyArg[src]

impl Clone for PyTuple[src]

impl Debug for PyTuple[src]

impl Deref for PyTuple[src]

type Target = PyArg

The resulting type after dereferencing.

impl From<PyArg> for PyTuple[src]

impl From<PyTuple> for PyArg[src]

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

type Item = &'a PyArg

The type of the elements being iterated over.

type IntoIter = IntoIter<&'a PyArg>

Which kind of iterator are we turning this into?

impl PartialEq<PyTuple> for PyTuple[src]

impl StructuralPartialEq for PyTuple[src]

Auto Trait Implementations

impl RefUnwindSafe for PyTuple

impl !Send for PyTuple

impl !Sync for PyTuple

impl Unpin for PyTuple

impl UnwindSafe for PyTuple

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.