Trait net_adds::IntoSmartIterator[][src]

pub trait IntoSmartIterator {
    type Item;
    type IntoSmartIter: Iterator;
    fn into_smart_iter(self) -> Self::IntoSmartIter;
}
Expand description

Conversion into a smart Iterator.

A smart iterator is an iterator that does not store all the items in memory. It’s usefull for long series.

By implementing IntoSmartIterator for a type, you define how it will be converted to an smart iterator.

This is common for types which describe a followed collection of some kind.

Associated Types

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Required methods

Creates an iterator from the current struct.

Implementors