Function malachite_base::chars::exhaustive::exhaustive_ascii_chars
source · pub const fn exhaustive_ascii_chars() -> ExhaustiveChars ⓘ
Expand description
Generates all ASCII char
s, in a friendly order, so that more familiar char
s come first.
The order is
- Lowercase ASCII letters,
- Uppercase ASCII letters,
- ASCII digits,
- Graphic ASCII
char
s (not alphanumeric and not control), including' '
but no other whitespace, - All remaining ASCII
char
s.
Within each group, the char
s are ordered according to their usual order.
If you want to generate ASCII char
s 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}"
);