Function malachite_base::chars::exhaustive::exhaustive_chars
source · pub const fn exhaustive_chars() -> ExhaustiveChars ⓘ
Expand description
Generates all 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
(not alphanumeric and not control), including' '
but no other whitespace, - Graphic Non-ASCII
char
s; all non-ASCIIchar
s whoseDebug
representations don’t start with'\'
, - All remaining
char
s.
Within each group, the char
s are ordered according to their usual order.
If you want to generate char
s in their usual order, try chars_increasing
.
The output length is 1,112,064.
§Complexity per iteration
Constant time and additional memory.
§Examples
use malachite_base::chars::exhaustive::exhaustive_chars;
assert_eq!(
exhaustive_chars().take(200).collect::<String>(),
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 !\"#$%&\'()*+,-./:;<=>?@[\\\
]^_`{|}~¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóô\
õö÷øùúûüýþÿĀāĂ㥹ĆćĈĉĊ"
);