Macro const_str::to_ascii_uppercase[][src]

macro_rules! to_ascii_uppercase {
    ($s : expr) => { ... };
}
Expand description

Returns a copy of this string where each character is mapped to its ASCII upper case equivalent.

Examples

const S: &str = "Hello, World";
assert_eq!(const_str::to_ascii_uppercase!(S), "HELLO, WORLD");