pub trait IntoInternalIterator {
    type Item;
    type IntoInternalIter: InternalIterator<Item = Self::Item>;

    fn into_internal_iter(self) -> Self::IntoInternalIter;
}
Expand description

A trait for conversion into an internal iterator.

This trait is commonly implemented for collections. It is useful when you want to write a function that can take either a collection or an internal iterator as input.

Required Associated Types

Required Methods

Converts self into an internal iterator.

Implementors