Type Definition widestring::ustr::U16Str[][src]

pub type U16Str = UStr<u16>;
Expand description

String slice reference for U16String.

U16Str is to U16String as str is to String.

U16Str is not aware of nul values. Strings may or may not be nul-terminated, and may contain invalid and ill-formed UTF-16 data. These strings are intended to be used with FFI functions that directly use string length, where the strings are known to have proper nul-termination already, or where strings are merely being passed through without modification.

U16CStr should be used instead of nul-aware strings are required.

U16Str can be converted to many other string types, including OsString and String, making proper Unicode FFI safe and easy.

Trait Implementations

Formats the value using the given formatter. Read more