Trait iter_trait::map::MapIter
[−]
[src]
pub trait MapIter<'a>: HasMapData + Iter<'a> { type KeyRef: Ref<'a, Self::Key>; type ValueRef: Ref<'a, Self::Value>; type IterKeysRef: Iterator<Item = Self::KeyRef>; type IterValuesRef: Iterator<Item = Self::ValueRef>; fn keys(&'a self) -> Self::IterKeysRef; fn values(&'a self) -> Self::IterValuesRef; }
A trait for map-like collections which can be iterated by references to keys and values.
Associated Types
type KeyRef: Ref<'a, Self::Key>
Type of the references to the keys in the collection.
For more information, see the KeyRef
trait.
type ValueRef: Ref<'a, Self::Value>
Type of the references to the values in the collection.
For more information, see the ValueRef
trait.
type IterKeysRef: Iterator<Item = Self::KeyRef>
Type of the iterator over references to keys.
type IterValuesRef: Iterator<Item = Self::ValueRef>
Type of the iterator over references to values.
Required Methods
fn keys(&'a self) -> Self::IterKeysRef
Constructs an iterator over references to the keys in this collection.
fn values(&'a self) -> Self::IterValuesRef
Constructs an iterator over references to the values in this collection.