Type Definition widestring::U16Str [−][src]
type U16Str = UStr<u16>;
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.
WideCStr
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.