#[repr(transparent)]
pub struct Utf16Str(_);
Expand description

UTF-16 string slice.

Implementations

Convert a slice of u16 to a UTF-16 string slice.

Converts a slice of bytes to a Utf16Str without validating that the slice contains valid UTF-16 encoded data.

Access the elements of this UTF-16 string as a slice of u16 elements.

Trait Implementations

Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Converts the given value to a String. Read more