Structs§
- Char
TryFrom Error - The error type returned when a conversion from
u32tocharfails. - Decode
Utf16 - An iterator that decodes UTF-16 encoded code points from an iterator of
u16s. - Decode
Utf16 Error - An error that can be returned when decoding UTF-16 code points.
- Escape
Debug - An iterator that yields the literal escape code of a
char. - Escape
Default - An iterator that yields the literal escape code of a
char. - Escape
Unicode - Returns an iterator that yields the hexadecimal Unicode escape of a
character, as
chars. - Parse
Char Error - An error which can be returned when parsing a char.
- ToLowercase
- Returns an iterator that yields the lowercase equivalent of a
char. - ToUppercase
- Returns an iterator that yields the uppercase equivalent of a
char. - TryFrom
Char Error - The error type returned when a checked char conversion fails.
Constants§
- MAX
- The highest valid code point a
charcan have,'\u{10FFFF}'. Usechar::MAXinstead. - REPLACEMENT_
CHARACTER U+FFFD REPLACEMENT CHARACTER(�) is used in Unicode to represent a decoding error. Usechar::REPLACEMENT_CHARACTERinstead.- UNICODE_
VERSION - The version of Unicode that the Unicode parts of
charandstrmethods are based on. Usechar::UNICODE_VERSIONinstead. - MAX_
LEN_ UTF8 Experimental - The maximum number of bytes required to encode a
charto UTF-8 encoding. - MAX_
LEN_ UTF16 Experimental - The maximum number of two-byte units required to encode a
charto UTF-16 encoding.
Functions§
- decode_
utf16 - Creates an iterator over the UTF-16 encoded code points in
iter, returning unpaired surrogates asErrs. Usechar::decode_utf16instead. - from_
digit - Converts a digit in the given radix to a
char. Usechar::from_digitinstead. - from_
u32 - Converts a
u32to achar. Usechar::from_u32instead. - from_
u32_ ⚠unchecked - Converts a
u32to achar, ignoring validity. Usechar::from_u32_uncheckedinstead.