doc.rust-lang.org
pub const fn is_ascii_whitespace(&self) -> bool
Checks if the value is an ASCII whitespace character: U+0020 SPACE, U+0009 HORIZONTAL TAB, U+000A LINE FEED, U+000C FORM FEED, or U+000D CARRIAGE RETURN.
method
core
Stable since 1.24.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn is_control(self) -> bool
Returns true if this char has the general category for control codes.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn is_digit(self, radix: u32) -> bool
Checks if a char is a digit in the given radix.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn is_lowercase(self) -> bool
Returns true if this char has the Lowercase property.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn is_numeric(self) -> bool
Returns true if this char has one of the general categories for numbers.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn is_uppercase(self) -> bool
Returns true if this char has the Uppercase property.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn is_whitespace(self) -> bool
Returns true if this char has the White_Space property.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn len_utf16(self) -> usize
Returns the number of 16-bit code units this char would need if encoded in UTF-16.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn len_utf8(self) -> usize
Returns the number of bytes this char would need if encoded in UTF-8.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn make_ascii_lowercase(&mut self)
Converts this type to its ASCII lower case equivalent in-place.
method
core
Stable since 1.23.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn make_ascii_uppercase(&mut self)
Converts this type to its ASCII upper case equivalent in-place.
method
core
Stable since 1.23.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn to_ascii_lowercase(&self) -> char
Makes a copy of the value in its ASCII lower case equivalent.
method
core
Stable since 1.23.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn to_ascii_uppercase(&self) -> char
Makes a copy of the value in its ASCII upper case equivalent.
method
core
Stable since 1.23.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn to_digit(self, radix: u32) -> Option<u32>
Converts a char to a digit in the given radix.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn to_lowercase(self) -> ToLowercase
Returns an iterator that yields the lowercase mapping of this char as one or more chars.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn to_uppercase(self) -> ToUppercase
Returns an iterator that yields the uppercase mapping of this char as one or more chars.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub mod clone
The Clone trait for types that cannot be 'implicitly copied'.
module
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
derive #[derive(Clone)]
Derive macro generating an impl of the trait Clone.
derive_macro
core
Stable since 1.38.0
Version 1.100.0-nightly
doc.rust-lang.org
pub trait Clone
A common trait that allows explicit creation of a duplicate value.
trait
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
fn clone(&self) -> Self
Returns a duplicate of the value.
method
core
Stable since 1.0.0
Version 1.100.0-nightly