[−][src]Type Definition widestring::U32Str
type U32Str = UStr<u32>;
String slice reference for U32String
.
U32Str
is to U32String
as str
is to String
.
U32Str
is not aware of nul values. Strings may or may not be nul-terminated, and may
contain invalid and ill-formed UTF-32 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.
U32Str
can be converted to many other string types, including OsString
and String
, making
proper Unicode FFI safe and easy.