[][src]Trait liquid::model::ArrayView

pub trait ArrayView: ValueView {
    fn as_value(&self) -> &dyn ValueView;
fn size(&self) -> i64;
fn values(
        &'k self
    ) -> Box<dyn Iterator<Item = &'k (dyn ValueView + 'k)> + 'k>;
fn contains_key(&self, index: i64) -> bool;
fn get(&self, index: i64) -> Option<&dyn ValueView>; fn first(&self) -> Option<&dyn ValueView> { ... }
fn last(&self) -> Option<&dyn ValueView> { ... } }

Accessor for arrays.

Required methods

fn as_value(&self) -> &dyn ValueView

Cast to ValueView

fn size(&self) -> i64

Returns the number of elements.

fn values(&'k self) -> Box<dyn Iterator<Item = &'k (dyn ValueView + 'k)> + 'k>

Returns an iterator .

fn contains_key(&self, index: i64) -> bool

Access a contained Value.

fn get(&self, index: i64) -> Option<&dyn ValueView>

Access a contained Value.

Loading content...

Provided methods

fn first(&self) -> Option<&dyn ValueView>

Returns the first element.

fn last(&self) -> Option<&dyn ValueView>

Returns the last element.

Loading content...

Implementations on Foreign Types

impl<T> ArrayView for Vec<T> where
    T: ValueView
[src]

Loading content...

Implementors

Loading content...