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