pub trait ObjectView: ValueView {
    fn as_value(&self) -> &dyn ValueView;
fn size(&self) -> i64;
fn keys<'k>(&'k self) -> Box<dyn Iterator<Item = KStringCow<'k>> + 'k>;
fn values<'k>(&'k self) -> Box<dyn Iterator<Item = &'k dyn ValueView> + 'k>;
fn iter<'k>(
        &'k self
    ) -> Box<dyn Iterator<Item = (KStringCow<'k>, &'k dyn ValueView)> + 'k>;
fn contains_key(&self, index: &str) -> bool;
fn get<'s>(&'s self, index: &str) -> Option<&'s dyn ValueView>; }
Expand description

Accessor for objects.

Required methods

Cast to ValueView

Returns the number of elements.

Keys available for lookup.

Keys available for lookup.

Returns an iterator .

Access a contained BoxedValue.

Access a contained Value.

Implementations on Foreign Types

Implementors