Expand description

Generator Traits

Enums

Traits

  • This trait represents a stateless generator. You pass the grammar & rng in, and it can provide the resulting stream.
  • This trait defines an interface for a grammar
  • This trait defines a random number generator capable of choosing a single item from a list of len usize. It is used for selecting a rule for using when multiple rules are available.
  • This trait represents a stateful generator. Here the generator owns the grammar, allowing it to make adjustments as needed.