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§
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.