[][src]Module r_efi_string::str16

UEFI Char16 based String Types and Converters

This module implements two basic types [&EfiStr16] and [EfiString16], which relate to each other just as [&str] relates to [String]. Unlike the strings in the rust standard library, these types implement UCS-2'ish strings, as used in UEFI systems.

While the UEFI Specification clearly states that Efi::Char16 based strings must be UCS-2, firmware is known to violate this. In fact, any 0-terminated u16 array might be exposed in such strings. Therefore, the EfiStr16 type implements a string based on any u16 array, and provides converters to and from the standard rust types.

Structs

EfiStr16

String slice based on UCS-2 strings as defined by UEFI.

EfiString16

A type representing an owned, C-compatible, UEFI-compatible, Nul-terminated string with no interior Nul-bytes.

Enums

FromSliceWithNulError

An error indicating wrongly placed Nuls.