Utilities for the char primitive type.
See also the char primitive type.
The char type represents a single character. More specifically, since ‘character’ isn’t a well-defined concept in Unicode, char is a ‘Unicode scalar value’, which is similar to, but not the same as, a ‘Unicode code point’.
This module exists for technical reasons, the primary documentation for char is directly on the char primitive type itself.
This module is the home of the iterator implementations for the iterators implemented on char, as well as some useful constants and conversion functions that convert various types to char.
u32 to char fails.u16s.char.char.chars.char.char.char can have, '\u{10FFFF}'. Use char::MAX instead.U+FFFD REPLACEMENT CHARACTER (�) is used in Unicode to represent a decoding error. Use char::REPLACEMENT_CHARACTER instead.char and str methods are based on. Use char::UNICODE_VERSION instead.char to UTF-8 encoding.char to UTF-16 encoding.iter, returning unpaired surrogates as Errs. Use char::decode_utf16 instead.char. Use char::from_digit instead.u32 to a char. Use char::from_u32 instead.u32 to a char, ignoring validity. Use char::from_u32_unchecked instead.
© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/std/char/index.html