#[utf32_all_strings]
Expand description
Converts all &str
literals to &[char]
.
use utf32_lit::utf32_all_strings;
#[utf32_all_strings]
mod strings {
pub const NAME: &[char] = "hello";
}
assert_eq!(strings::NAME, &['h', 'e', 'l', 'l', 'o']);
#[utf32_all_strings]
Converts all &str
literals to &[char]
.
use utf32_lit::utf32_all_strings;
#[utf32_all_strings]
mod strings {
pub const NAME: &[char] = "hello";
}
assert_eq!(strings::NAME, &['h', 'e', 'l', 'l', 'o']);