Module generator_ext::iter[][src]

Structs

ReturnIterator
YieldIterator

Traits

ReturnIterExt

This traits converts any type Implementing Gen<Yield = T, Return = R> into an Iterator, where R: Into. This Iterator also returns the returned item from Gen. This is only possible if the Yield type and Return type are the same, or when the Return type can be transformed into the Yield type.

YieldIterExt

This trait converts any type implementing Gen to an Iterator. The Iterator should only return the Yield variants of State, and ignore the Return variant.