macro_rules! u32str {
($text:expr) => { ... };
}
Expand description
Converts a string literal into a const
UTF-32 string slice of type
U32Str
.
The resulting const
string slice will always be valid UTF-32.
§Examples
use widestring::{u32str, U32Str, U32String};
const STRING: &U32Str = u32str!("My string");
assert_eq!(U32String::from_str("My string"), STRING);