pub const fn exhaustive_ascii_chars() -> ExhaustiveChars 
Expand description

Generates all ASCII 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 chars (not alphanumeric and not control), including ' ' but no other whitespace,
  5. All remaining ASCII chars.

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

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

The output length is 128.

Complexity per iteration

Constant time and additional memory.

Examples

use malachite_base::chars::exhaustive::exhaustive_ascii_chars;

assert_eq!(
    exhaustive_ascii_chars().collect::<String>(),
    "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 !\"#$%&\'()*+,-./:;<=>?@[\\\
    ]^_`{|}~\u{0}\u{1}\u{2}\u{3}\u{4}\u{5}\u{6}\u{7}\u{8}\t\n\u{b}\u{c}\r\u{e}\u{f}\u{10}\u{11}\
    \u{12}\u{13}\u{14}\u{15}\u{16}\u{17}\u{18}\u{19}\u{1a}\u{1b}\u{1c}\u{1d}\u{1e}\u{1f}\u{7f}"
);