Crate encode_unicode [−] [src]
Miscellaneous UTF-8 and UTF-16 types and methods.
Optional features:
#![no_std]-mode: There are a few differences:AsciiExtdoesn't exist, butis_ascii()is made available as an inherent impl.Errordoesn't exist, butdescription()is made available as an inherent impl.Extend/FromIterator-implementations forString/Vec<u8>/Vec<u16>.- There is no 
io, soUtf8Iteratordoesn't implementRead. 
This feature is enabled by setting
default-features=falseinCargo.toml:encode_unicode = {version="0.3", default-features=false}Integration with the ascii crate:
ConvertUtf8CharandUtf16Charto 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   |