Module pushgen::generators

source ·
Expand description

Implements various generators.

Structs

  • A generator that generates values from an array.
  • Box a generator, type-erasing the actual generator type. See .boxed() for details.
  • A generator where each iteration calls the provided closure F: FnMut() -> Option<T>.
  • A generator where each iteration delegates to an Iterator
  • A generator over the value in Some variant of an Option.
  • A generator that generates values from a slice.

Functions

  • Creates a new generator where each iteration calls the provided closure F: FnMut() -> Option<T>.
  • Creates a generator that wraps an Iterator.