Expand description
gen-nested-iter-yield exports a helper macro, nested_iter_yield, which can be used to generate n-nested for loops over identical iterators. This is useful for generating a stream of permutations with replacement without storing unnecessary intermediary buffers.
The macro returns a genawaiter::sync
generator which, when the feature futures03
is enabled, implements futures::stream::Stream.
Macrosยง
- Creates an n-nested for loop of iterators over the passed input. Assumes that the first argument can be called multiple times to produce identical iterators.