macro_rules! utf32str { ($text:expr) => { ... }; }
Converts a string literal into a const UTF-32 string slice of type Utf32Str.
const
Utf32Str
use widestring::{utf32str, Utf32Str, Utf32String}; const STRING: &Utf32Str = utf32str!("My string"); assert_eq!(Utf32String::from_str("My string"), STRING);