macro_rules! utf16str {
    ($text:expr) => { ... };
}
Expand description

Converts a string literal into a const UTF-16 string slice of type Utf16Str.

Examples

use widestring::{utf16str, Utf16Str, Utf16String};

const STRING: &Utf16Str = utf16str!("My string");
assert_eq!(Utf16String::from_str("My string"), STRING);