Trait Generator

Source
pub trait Generator<'a, T>: FnMut() -> Option<T> + 'a { }
Expand description

Generator function

Implementors§

Source§

impl<'a, T, R> Generator<'a, R> for T
where T: FnMut() -> Option<R> + 'a,