Trait simd_json::prelude::Array[][src]

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

Prelude to include needed traits Functions guaranteed for any array object

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