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

pub type U32Str = UStr<u32>;
Expand description

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.

U32CStr 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.

Trait Implementations

Formats the value using the given formatter. Read more