IterItem

Trait IterItem 

Source
pub trait IterItem {
    type Item<'a>;
}
Expand description

A kind of item that an IterVTable returns

This trait is needed as a utility, so the functions within IterVTable can apply the appropriate lifetime to their result types. In other words, this trait acts like a higher-kinded type that takes a lifetime.

Required Associated Types§

Source

type Item<'a>

The output type of the iterator, bound by the lifetime 'a

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<T, U> IterItem for (T, U)
where T: IterItem, U: IterItem,

Source§

type Item<'a> = (<T as IterItem>::Item<'a>, <U as IterItem>::Item<'a>)

Implementors§

Source§

impl IterItem for PtrConst<'_>

Source§

type Item<'a> = PtrConst<'a>