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
type IntoSmartIter: Iterator
type IntoSmartIter: Iterator
Which kind of iterator are we turning this into?
Required methods
fn into_smart_iter(self) -> Self::IntoSmartIter
fn into_smart_iter(self) -> Self::IntoSmartIter
Creates an iterator from the current struct.