Trait generator_ext::iter::ReturnIterExt[][src]

pub trait ReturnIterExt<Y, R>: Senerator<Yield = Y, Return = R> where
    R: Into<Y>, 
{ type Iter: Iterator; fn iter_all(self) -> Self::Iter; }

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.

Associated Types

The Iterator returned.

Required Methods

Returns the Iterator. The Iterator should return both the yielded items, as well as the returned item from the underlying Generator.

Implementors