doc.rust-lang.org
const UNICODE_VERSION: (u8, u8, u8)
The version of Unicode that the Unicode parts of char and str methods are based on.
associated_constant
core
Stable since 1.52.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct TryFromCharError
The error type returned when a checked char conversion fails.
struct
core
Stable since 1.59.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct ToUppercase
Returns an iterator that yields the uppercase equivalent of a char.
struct
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct ToLowercase
Returns an iterator that yields the lowercase equivalent of a char.
struct
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const REPLACEMENT_CHARACTER: char
U+FFFD REPLACEMENT CHARACTER (�) is used in Unicode to represent a decoding error. Use char::REPLACEMENT_CHARACTER instead.
constant
core
Stable since 1.9.0
Version 1.100.0-nightly
doc.rust-lang.org
const REPLACEMENT_CHARACTER: char
U+FFFD REPLACEMENT CHARACTER (�) is used in Unicode to represent a decoding error.
associated_constant
core
Stable since 1.52.0
Version 1.100.0-nightly
doc.rust-lang.org
const MIN: char
The lowest valid code point a char can have, '\0'.
associated_constant
core
Stable since 1.83.0
Version 1.100.0-nightly
doc.rust-lang.org
const MAX_LEN_UTF8: usize
The maximum number of bytes required to encode a char to UTF-8 encoding.
associated_constant
core
Stable since 1.93.0
Version 1.100.0-nightly
doc.rust-lang.org
const MAX_LEN_UTF16: usize
The maximum number of two-byte units required to encode a char to UTF-16 encoding.
associated_constant
core
Stable since 1.93.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const MAX: char
The highest valid code point a char can have, '\u{10FFFF}'. Use char::MAX instead.
constant
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
const MAX: char
The highest valid code point a char can have, '\u{10FFFF}'.
associated_constant
core
Stable since 1.52.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct EscapeUnicode
Returns an iterator that yields the hexadecimal Unicode escape of a character, as chars.
struct
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct EscapeDefault
An iterator that yields the literal escape code of a char.
struct
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct EscapeDebug
An iterator that yields the literal escape code of a char.
struct
core
Stable since 1.20.0
Version 1.100.0-nightly
doc.rust-lang.org
primitive char
A character type.
primitive
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub mod char
Utilities for the char primitive type.
module
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub macro cfg!
Evaluates boolean combinations of configuration flags at compile-time.
macro
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn take(&mut self) -> Option<T>
Takes the value out of this OnceCell, moving it back to an uninitialized state.
method
core
Stable since 1.70.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn set(&self, value: T) -> Result<(), T>
Initializes the contents of the cell to value.
method
core
Stable since 1.70.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn new() -> OnceCell<T>
Creates a new uninitialized cell.
associated_function
core
Stable since 1.70.0
Version 1.100.0-nightly