Crate const_utf16[][src]

Const evaluated utf8 to utf16 conversion functions.

Use

const HELLO_WORLD_UTF16: const_utf16::Utf16Buffer = const_utf16::encode_utf16("Hello, world!");

Structs

Utf16Buffer

A buffer of Utf16 encode bytes

Constants

BUFFER_SIZE

The size of the Utf16Buffer

Functions

encode_utf16

Encode a &str as a utf16 buffer

encode_utf16_with_terminating_null

Encode a &str as a utf16 buffer with a terminating null byte