Skip to main content

to_ascii_uppercase

Function to_ascii_uppercase 

Source
pub open spec fn to_ascii_uppercase(c: char) -> char
Expand description
{ if is_ascii_lowercase(c) { (c as u32 - 32) as char } else { c } }

Makes a copy of the value in its ASCII upper case equivalent. https://doc.rust-lang.org/std/primitive.char.html#method.to_ascii_uppercase/