Crate encode_unicode [−] [src]
Miscellaneous UTF-8 and UTF-16 types and methods.
Optional features:
#![no_std]
-mode: There are a few differences:AsciiExt
doesn't exist, butis_ascii()
is made available as an inherent impl.Error
doesn't exist, butdescription()
is made available as an inherent impl.Extend
/FromIterator
-implementations forString
/Vec<u8>
/Vec<u16>
.- There is no
io
, soUtf8Iterator
doesn't implementRead
.
This feature is enabled by setting
default-features=false
inCargo.toml
:encode_unicode = {version="0.3", default-features=false}
Integration with the ascii crate:
ConvertUtf8Char
andUtf16Char
to and from ascii::AsciiChar
.
The minimum supported version of Rust is 1.15, older versions might work, but also break in a minor update.
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 |
U16UtfExt |
Methods for working with |
U8UtfExt |
Methods for working with |