pub trait Iterable {
    type Key: ToJSValConvertible;
    type Value: ToJSValConvertible;

    fn get_iterable_length(&self) -> u32;
    fn get_value_at_index(&self, index: u32) -> Self::Value;
    fn get_key_at_index(&self, index: u32) -> Self::Key;
}
Expand description

A DOM object that can be iterated over using a pair value iterator.

Required Associated Types

The type of the key of the iterator pair.

The type of the value of the iterator pair.

Required Methods

Return the number of entries that can be iterated over.

Return the value at the provided index.

Return the key at the provided index.

Implementors