Crate encode_unicode[−][src]
Miscellaneous UTF-8 and UTF-16 types and methods.
Optional features:
-
#![no_std]
-mode: There are a few differences:Error
doesn’t exist, butdescription()
is made available as an inherent impl.Extend
/FromIterator
-implementations forString
/Vec<u8>
/Vec<u16>
are missing.- There is no
io
, soUtf8Iterator
andUtf8CharSplitter
doesn’t implementRead
.
This feature is enabled by setting
default-features=false
inCargo.toml
:encode_unicode = {version="0.3.4", 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 now but can break with a minor update.
Modules
error | Errors returned by various conversion methods in this crate. |
iterator | Iterator types that you should rarely need to name |
Structs
Utf8Char | An unicode codepoint stored as UTF-8. |
Utf8Iterator | Read or iterate over the bytes of the UTF-8 representation of a codepoint. |
Utf16Char | An unicode codepoint stored as UTF-16. |
Utf16Iterator | Iterate over the units of the UTF-16 representation of a codepoint. |
Traits
CharExt | Extension trait for |
IterExt | Iterator methods that convert between |
SliceExt | Methods for iterating over |
StrExt | Adds |
U8UtfExt | Methods for working with |
U16UtfExt | Methods for working with |
Functions
iter_bytes | Converts an iterator of |
iter_units | Converts an iterator of |