| Crates.io | choice_nocase |
| lib.rs | choice_nocase |
| version | 0.2.0 |
| created_at | 2023-10-10 21:13:39.682732+00 |
| updated_at | 2023-11-04 16:38:27.697852+00 |
| description | Transforms a string as a list of strings separated by `|` where all combinations of character cases are generated. By construction first one is fully uppercase, second one is fully lowercase. |
| homepage | |
| repository | https://github.com/rgiot/choice_nocase |
| max_upload_size | |
| id | 999486 |
| size | 7,716 |
Transforms a string as a list of strings separated by `|`` where all combinations of character cases are generated. By construction first one is fully uppercase, second one is fully lowercase.
The following call:
match value.as_ref() {
choice_nocase!("hi") => println!("good"),
_ => println!("bad")
};
corresponds to a similar macro expansion:
match value.as_ref() {
"HI" | "hi" | "Hi" | "hI" => println!("good"),
_ => println!("bad")
};