Skip to main content

ACMapIter

Trait ACMapIter 

Source
pub trait ACMapIter<'a> {
    type Item;
    type Iter: Iterator<Item = Self::Item>;

    // Required method
    fn iter(&'a self) -> Self::Iter;
}
Expand description

Borrowing iteration over an ACMap. Lives in its own trait so that implementations may pick their own item / iterator types.

Required Associated Types§

Source

type Item

Yielded item type.

Source

type Iter: Iterator<Item = Self::Item>

Iterator type.

Required Methods§

Source

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

Iterate over (key, value) pairs (or their representation).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<'a, V, H, W> ACMapIter<'a> for AHashMap<W, V, H>
where V: Coefficient + 'a, H: Default + Clone + BuildHasher + 'a, W: 'a,

Source§

type Item = (&'a W, &'a V)

Source§

type Iter = Iter<'a, W, V>

Source§

fn iter(&'a self) -> <AHashMap<W, V, H> as ACMapIter<'a>>::Iter

Source§

impl<'a, V, H, W> ACMapIter<'a> for IndexMap<W, V, H>
where V: Coefficient + 'a, H: Default + Clone + BuildHasher + 'a, W: 'a,

Source§

type Item = (&'a W, &'a V)

Source§

type Iter = Iter<'a, W, V>

Source§

fn iter(&'a self) -> <IndexMap<W, V, H> as ACMapIter<'a>>::Iter

Source§

impl<'a, V, Hasher, W> ACMapIter<'a> for DashMap<W, V, Hasher>
where V: Coefficient + 'a, Hasher: Default + Clone + BuildHasher + 'a, W: Hash + Eq + 'a,

Source§

type Item = RefMulti<'a, W, V>

Source§

type Iter = Iter<'a, W, V, Hasher>

Source§

fn iter(&'a self) -> <DashMap<W, V, Hasher> as ACMapIter<'a>>::Iter

Source§

impl<'a, V, Hasher, W> ACMapIter<'a> for HashMap<W, V, Hasher>
where V: Coefficient + 'a, Hasher: Default + Clone + BuildHasher + 'a, W: 'a,

Source§

type Item = (&'a W, &'a V)

Source§

type Iter = Iter<'a, W, V>

Source§

fn iter(&'a self) -> <HashMap<W, V, Hasher> as ACMapIter<'a>>::Iter

Implementors§