doc.rust-lang.org
pub fn escape_default(self) -> EscapeDefault
Returns an iterator that yields the literal escape code of a character as chars.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn escape_unicode(self) -> EscapeUnicode
Returns an iterator that yields the hexadecimal Unicode escape of a character as chars.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn from_digit(num: u32, radix: u32) -> Option<char>
Converts a digit in the given radix to a char.
associated_function
core
Stable since 1.52.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn from_digit(num: u32, radix: u32) -> Option<char>
Converts a digit in the given radix to a char. Use char::from_digit instead.
function
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn from_u32(i: u32) -> Option<char>
Converts a u32 to a char.
associated_function
core
Stable since 1.52.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn from_u32(i: u32) -> Option<char>
Converts a u32 to a char. Use char::from_u32 instead.
function
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const unsafe fn from_u32_unchecked(i: u32) -> char
Converts a u32 to a char, ignoring validity.
associated_function
core
Stable since 1.52.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const unsafe fn from_u32_unchecked(i: u32) -> char
Converts a u32 to a char, ignoring validity. Use char::from_u32_unchecked instead.
function
core
Stable since 1.5.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn is_alphabetic(self) -> bool
Returns true if this char has the Alphabetic property.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn is_alphanumeric(self) -> bool
Returns true if this char satisfies either is_alphabetic() or is_numeric().
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn is_ascii(&self) -> bool
Checks if the value is within the ASCII range.
method
core
Stable since 1.23.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn is_ascii_alphabetic(&self) -> bool
Checks if the value is an ASCII alphabetic character:
method
core
Stable since 1.24.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn is_ascii_alphanumeric(&self) -> bool
Checks if the value is an ASCII alphanumeric character:
method
core
Stable since 1.24.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn is_ascii_control(&self) -> bool
Checks if the value is an ASCII control character: U+0000 NUL ..= U+001F UNIT SEPARATOR, or U+007F DELETE. Note that most ASCII whitespace characters are control characters, but SPACE is not.
method
core
Stable since 1.24.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn is_ascii_digit(&self) -> bool
Checks if the value is an ASCII decimal digit: U+0030 '0' ..= U+0039 '9'.
method
core
Stable since 1.24.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn is_ascii_graphic(&self) -> bool
Checks if the value is an ASCII graphic character (i.e. not whitespace or control): U+0021 '!' ..= U+007E '~'.
method
core
Stable since 1.24.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn is_ascii_hexdigit(&self) -> bool
Checks if the value is an ASCII hexadecimal digit:
method
core
Stable since 1.24.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn is_ascii_lowercase(&self) -> bool
Checks if the value is an ASCII lowercase character: U+0061 'a' ..= U+007A 'z'.
method
core
Stable since 1.24.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn is_ascii_punctuation(&self) -> bool
Checks if the value is an ASCII punctuation or symbol character (i.e. not alphanumeric, whitespace, or control):
method
core
Stable since 1.24.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn is_ascii_uppercase(&self) -> bool
Checks if the value is an ASCII uppercase character: U+0041 'A' ..= U+005A 'Z'.
method
core
Stable since 1.24.0
Version 1.100.0-nightly