doc.rust-lang.org
fn cmp(&self, other: &Self) -> Ordering
This method returns an Ordering between self and other.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
fn clamp(self, min: Self, max: Self) -> Self
Restrict a value to a certain interval.
method
core
Stable since 1.50.0
Version 1.100.0-nightly
doc.rust-lang.org
pub trait Ord
Trait for types that form a total order.
trait
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
derive #[derive(Ord)]
Derive macro generating an impl of the trait Ord. The behavior of this macro is described in detail here.
derive_macro
core
Stable since 1.38.0
Version 1.100.0-nightly
doc.rust-lang.org
pub trait Eq
Trait for comparisons corresponding to equivalence relations.
trait
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
derive #[derive(Eq)]
Derive macro generating an impl of the trait Eq. The behavior of this macro is described in detail here.
derive_macro
core
Stable since 1.38.0
Version 1.100.0-nightly
doc.rust-lang.org
pub mod cmp
Utilities for comparing and ordering values.
module
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source.
method
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
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
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 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
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 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 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 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_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 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 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 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