Trait argdata::container_traits::MapContainer[][src]

pub trait MapContainer {
    type Key;
    type Value;
    fn get(&self, index: usize) -> Option<(&Self::Key, &Self::Value)>;
fn len(&self) -> usize; }

a random-access container containing pairs of keys and values.

Both a tuple of two Containers and a Container of tuples are considered MapContainers: Examples are (Vec<Key>, &[Val]) and Box<[(Key, Val)]>.

Associated Types

Required Methods

Implementations on Foreign Types

impl<K, V> MapContainer for (K, V) where
    K: Container,
    V: Container
[src]

Implementors