abi_stable::erased_types

Trait IteratorItem

Source
pub trait IteratorItem<'a>: InterfaceType {
    type Item;
}
Expand description

The way to specify the expected Iterator::Item type for an InterfaceType.

This is a separate trait to allow iterators that yield borrowed elements.

Required Associated Types§

Source

type Item

The iterator item type.

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.

Implementors§

Source§

impl<'a, K: 'a, V: 'a> IteratorItem<'a> for MutIterInterface<K, V>

Source§

impl<'a, K: 'a, V: 'a> IteratorItem<'a> for RefIterInterface<K, V>

Source§

impl<'a, K: 'a, V: 'a> IteratorItem<'a> for ValIterInterface<K, V>

Source§

type Item = Tuple2<K, V>

Source§

impl<'a, T: 'a> IteratorItem<'a> for DEIteratorCloneInterface<T>

Source§

type Item = T

Source§

impl<'a, T: 'a> IteratorItem<'a> for DEIteratorInterface<T>

Source§

type Item = T

Source§

impl<'a, T: 'a> IteratorItem<'a> for IteratorInterface<T>

Source§

type Item = T