Trait IntoInternalIterator

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

    // Required method
    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§

Source

fn into_internal_iter(self) -> Self::IntoInternalIter

Converts self into an internal iterator.

Implementors§