Crate encode_unicode [] [src]

Alternative and extension to the unstable char.encode_utf8() and char.encode_utf16().

Modules

error

Errors returned by various conversion methods in this crate.

Structs

Utf16Char

Store a char as UTF-16 so it can be borrowed as a slice

Utf16Iterator

Iterate over the units in an UTF-16 representation of a codepoint.

Utf8Char

Store a char as UTF-8 so it can be borrowed as a str

Utf8Iterator

Read or iterate over the bytes in the UTF-8 representation of a codepoint.

Traits

CharExt

Extension trait for char that adds methods for converting to and from UTF-8 or UTF-16.

U16UtfExt

Methods for working with u16s as UTF-16 units.

U8UtfExt

Methods for working with u8s UTF-8.