How can I lowercase an array of strings at compile time in Rust?

Viewed 217

I have an array of strings like

const LANGUAGES: [&str; 3] = [
  "EN",
  "ES",
  "DE",
];

and I would like to lowercase them at compile time. How can I do that?

0 Answers
Related