MapIter

Trait MapIter 

Source
pub trait MapIter: KeyedRef + CollectionRef {
    type Iter<'a>: Iterator<Item = (Self::KeyRef<'a>, Self::ItemRef<'a>)>
       where Self: 'a;

    // Required method
    fn iter(&self) -> Self::Iter<'_>;
}

Required Associated Types§

Source

type Iter<'a>: Iterator<Item = (Self::KeyRef<'a>, Self::ItemRef<'a>)> where Self: 'a

Required Methods§

Source

fn iter(&self) -> Self::Iter<'_>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<K, V> MapIter for BTreeMap<K, V>

Source§

type Iter<'a> = Iter<'a, K, V> where Self: 'a

Source§

fn iter(&self) -> Self::Iter<'_>

Source§

impl<K, V> MapIter for HashMap<K, V>

Source§

type Iter<'a> = Iter<'a, K, V> where Self: 'a

Source§

fn iter(&self) -> Self::Iter<'_>

Implementors§