Rust Char Uppercase

Source URL: https://stackoverflow.com/questions/35432199/convert-a-char-to-upper-case

Language: rust

Created on: 2021-09-14 22:43:16

let a_upper: char = 'a'.to_uppercase();
I have a variable which contains a single char. I want to convert this char to upper case. However, the to_uppercase function returns a rustc_unicode::char::ToUppercase struct instead of a char.
content_copy