[][src]Macro utf16_lit::utf16

utf16!() { /* proc-macro */ }

Makes a &[u16] const.

  • Usage:
    • Statement: utf16!(IDENT, string_literal);
    • Expands to: pub const IDENT: &[u16] = utf16_string_literal;

If you want to have a "null terminated" string (such as for some parts of Windows FFI) then you should use utf16_null.