Trait Iteratorpub
Source
:trait(pub) Iterator item
.next ( Self → Self (Option item) )
Description
Lazy, stateful element-at-a-time iteration protocol. Returns Some item on advance, None on exhaustion.
Advance one element; returns the iterator and an optional value. ( Self -> Self (Option item) )