pub trait Array: Index<usize> + Sync + Send + Clone {
    type Element: Value;

    fn get<I>(
        &self,
        i: I
    ) -> Option<&<I as SliceIndex<[Self::Element]>>::Output>
    where
        I: SliceIndex<[Self::Element]>
; fn get_mut(&mut self, i: usize) -> Option<&mut Self::Element>; fn pop(&mut self) -> Option<Self::Element>; fn push(&mut self, e: Self::Element); fn iter(
        &'i self
    ) -> Box<dyn Iterator<Item = &'i Self::Element> + 'i, Global>; fn len(&self) -> usize; fn is_empty(&self) -> bool { ... } }
Expand description

Functions guaranteed for any array object

Required Associated Types

Elements of the array

Required Methods

Gets a ref to a value based on n index, returns None if the current Value isn’t an Array or doesn’t contain the index it was asked for.

Gets a ref to a value based on n index, returns None if the current Value isn’t an Array or doesn’t contain the index it was asked for.

Returns the last element of the array or None

Appends e to the end of the Array

Iterates over the values paris

Number of key/value pairs

Provided Methods

Returns if the array is empty

Implementations on Foreign Types

Implementors