Trait generator_ext::iter::YieldIterExt [−][src]
pub trait YieldIterExt: Senerator { type Iter: Iterator; fn iter_yielded(self) -> Self::Iter; }
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.
Associated Types
Required Methods
fn iter_yielded(self) -> Self::Iter
Returns the Iterator. The Iterator should only return the Yielded items from the underlying Generator
Implementors
impl<G> YieldIterExt for G where
G: Senerator, type Iter = YieldIterator<Self>;