Struct rustypy::pytypes::pylist::PyList [] [src]

pub struct PyList { /* fields omitted */ }

An analog of a Python list which contains an undefined number of elements of a single kind, of any supported type.

Read the module docs for more information.

Methods

impl PyList
[src]

Constructs a new, empty PyList<T>.

The vector will not allocate until elements are pushed onto it.

Removes and returns the element at position index within the vector, shifting all elements after it to the left.

Removes the last element from a vector and returns it, or None if it is empty.

Returns the number of elements in the PyList.

Appends an element to the back of a collection.

Panics

Panics if the number of elements in the vector overflows a usize.

Get a PyList from a previously boxed raw pointer.

Return a PyList as a raw pointer.

Consume self and turn it into an iterator.

Trait Implementations

impl Clone for PyList
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for PyList
[src]

Formats the value using the given formatter.

impl PartialEq for PyList
[src]

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

This method tests for !=.

impl<T> FromIterator<T> for PyList where
    PyArg: From<T>, 
[src]

Creates a value from an iterator. Read more

impl<T> Into<Vec<T>> for PyList where
    PyArg: Into<T>, 
[src]

Performs the conversion.

impl<T> From<Vec<T>> for PyList where
    PyArg: From<T>, 
[src]

Performs the conversion.

impl Index<usize> for PyList
[src]

The returned type after indexing

The method for the indexing (container[index]) operation

impl<'a> IndexMut<usize> for PyList
[src]

The method for the mutable indexing (container[index]) operation

impl From<PyArg> for PyList
[src]

Performs the conversion.