[][src]Trait abi_stable::erased_types::IteratorItemOrDefault

pub trait IteratorItemOrDefault<'borr>: InterfaceType {
    type Item;
}

Gets the expected Iterator::Item type for an InterfaceType, defaulting to () if it doesn't require Iterator to be implemented.

Used by DynTrait's vtable to give its iterator methods a defaulted return type.

Associated Types

type Item[src]

The iterator item type.

Loading content...

Implementors

impl<'borr, I, Item> IteratorItemOrDefault<'borr> for I where
    I: InterfaceType,
    I: IteratorItemOrDefaultHelper<'borr, <I as InterfaceType>::Iterator, Item = Item>, 
[src]

type Item = Item

Loading content...