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 of the references to the keys in the collection.

For more information, see the KeyRef trait.

Type of the references to the values in the collection.

For more information, see the ValueRef trait.

Type of the iterator over references to keys.

Type of the iterator over references to values.

Required Methods

Constructs an iterator over references to the keys in this collection.

Constructs an iterator over references to the values in this collection.

Implementors