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
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>
&'a self
) -> Box<Iterator<Item = (&'a Self::Key, &'a Self::Value)> + 'a>
Implementations on Foreign Types
impl<K, V> Map for BTreeMap<K, V> where
K: MapKey + Ord,
V: FieldType,
[src]
K: MapKey + Ord,
V: FieldType,
impl<K, V> Map for HashMap<K, V> where
K: MapKey + Eq + Hash,
V: FieldType,
[src]
K: MapKey + Eq + Hash,
V: FieldType,