Closed AndWass closed 3 years ago
Initial suggestion to enable reverse generators:
Add
pub trait DoubleEndedGenerator: Generator { fn run_from_back(&mut self, output: impl FnMut(Self::Output) -> ValueResult) -> GeneratorResult; }
This is implemented for SliceGenerator. Adaptors implement it based on if source-generator implements it.
SliceGenerator
This should allow for propogation of reverse-ness through the type-tree.
DynGenerator
Initial suggestion to enable reverse generators:
Add
This is implemented for
SliceGenerator
. Adaptors implement it based on if source-generator implements it.This should allow for propogation of reverse-ness through the type-tree.
Questions
DynGenerator
?