Trait pbcodec::traits::Map [] [src]

pub trait Map: Default {
    type Key: MapKey;
    type Value: FieldType;
    type IntoIter: Iterator<Item = (Self::Key, Self::Value)>;
    fn insert(&mut self, key: Self::Key, value: Self::Value);
fn into_iter(self) -> Self::IntoIter;
fn iter<'a>(
        &'a self
    ) -> Box<Iterator<Item = (&'a Self::Key, &'a Self::Value)> + 'a>; }

Associated Types

Required Methods

Implementations on Foreign Types

impl<K, V> Map for BTreeMap<K, V> where
    K: MapKey + Ord,
    V: FieldType
[src]

[src]

[src]

[src]

impl<K, V> Map for HashMap<K, V> where
    K: MapKey + Eq + Hash,
    V: FieldType
[src]

[src]

[src]

[src]

Implementors