Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
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
"If the Rust community has an ethos, it's that software should have strong static typing, but people should have soft dynamic typing."

Search tips

Type anything to search across articles, videos (including conference talks), podcasts, research, crates, and Rust API documentation. These operators give you finer control — click an example to try it.

Find pages containing all your words. Pages where the words appear together rank higher.
Quote part of your query to keep those words together as an exact phrase within a larger search.
Wrap the whole query in quotes for a verbatim search that matches text exactly, punctuation and all — perfect for Rust syntax. Needs at least 3 characters.
Put ! first to open the top result immediately. Quote the whole query for a literal leading bang, as in '!Send'. Bangs elsewhere, such as println!, stay literal. Browser and launcher shortcuts can invoke this directly. See search integrations.
Limit results to a single site. Works on its own () too. One site: per search.

Use the tabs and filters above the results to narrow by content type, publication year, and sort order.