Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
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
"Right. I've never even used this impl, but my first thought upon seeing the question "I have an `Iterator` of `X` and need a `Y`" was to look at the ..."

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.