Trait generator_ext::gen::Senerator [−][src]
pub trait Senerator: Futerator { type Yield; fn resume_with_yield(&mut self) -> Senor<Self::Yield, Self::Return>; }
A Stream
generator. On each call, the generator advances, and is supposed to yield a usable item.
Returns the Yield variant of State with the yielded items of the Generator,
and the Return variant of State when the Generator returns, with the returned item.
Any further calls to resume_with_yield
should return None.
Associated Types
type Yield
Required Methods
fn resume_with_yield(&mut self) -> Senor<Self::Yield, Self::Return>
Implementations on Foreign Types
impl<'a, G> Senerator for &'a mut G where
G: Senerator,
[src]
impl<'a, G> Senerator for &'a mut G where
G: Senerator,