pub const fn exhaustive_chars() -> ExhaustiveCharsNotable traits for ExhaustiveCharsimpl Iterator for ExhaustiveChars    type Item = char;
Expand description

Generates all chars, in a friendly order, so that more familiar chars come first.

The order is

  1. Lowercase ASCII letters,
  2. Uppercase ASCII letters,
  3. ASCII digits,
  4. Graphic ASCII char (not alphanumeric and not control), including ' ' but no other whitespace,
  5. Graphic Non-ASCII chars; all non-ASCII chars whose Debug representations don’t start with '\',
  6. All remaining chars.

Within each group, the chars are ordered according to their usual order.

If you want to generate chars in their usual order, try chars_increasing.

The output length is 1,112,064.

Complexity per iteration

Constant time and additional memory.


use malachite_base::chars::exhaustive::exhaustive_chars;

    "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 !\"#$%&\'()*+,-./:;<=>?@[\\\