Crate encode_unicode [] [src]

Miscellaneous UTF-8 and UTF-16 types and methods.

Optional features:

The minimum supported version of Rust is 1.15, older versions might work, but also break in a minor update.

crates.io page
githab repository

Modules

error

Errors returned by various conversion methods in this crate.

Structs

Utf16Char

An unicode codepoint stored as UTF-16.

Utf16Iterator

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

Utf8Char

An unicode codepoint stored as UTF-8.

Utf8Iterator

Read or iterate over the bytes of 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 as UTF-8 bytes.