Struct fringe::generator::Yielder
[−]
[src]
pub struct Yielder<Input: Send, Output: Send> { /* fields omitted */ }
Yielder is an interface provided to every generator through which it returns a value.
Methods
impl<Input, Output> Yielder<Input, Output> where
Input: Send,
Output: Send,
[src]
Input: Send,
Output: Send,
fn suspend(&self, item: Output) -> Input
Suspends the generator and returns Some(item)
from the resume()
invocation that resumed the generator.