Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
doc.rust-lang.org
fn from(value: T) -> Self
Converts to this type from the input type.
associated_function core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub trait From<T>
Used to do value-to-value conversions while consuming the input value. It is the reciprocal of Into.
trait core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
fn as_ref(&self) -> &T
Converts this type into a shared reference of the (usually inferred) input type.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub trait AsRef<T>
Used to do a cheap reference-to-reference conversion.
trait core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
fn as_mut(&mut self) -> &mut T
Converts this type into a mutable reference of the (usually inferred) input type.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub trait AsMut<T>
Used to do a cheap mutable-to-mutable reference conversion.
trait core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub mod convert
Traits for conversions between types.
module core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub macro concat!
Concatenates literals into a static string slice.
macro core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub macro compile_error!
Causes compilation to fail with the given error message when encountered.
macro core Stable since 1.20.0 Version 1.100.0-nightly
doc.rust-lang.org
pub macro column!
Expands to the column number at which it was invoked.
macro core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn min_by_key<T, F, K>(v1: T, v2: T, f: F) -> T
Returns the element that gives the minimum value from the specified function.
function core Stable since 1.53.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn min_by<T, F>(v1: T, v2: T, compare: F) -> T
Returns the minimum of two values with respect to the specified comparison function.
function core Stable since 1.53.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn min<T>(v1: T, v2: T) -> T
Compares and returns the minimum of two values.
function core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn max_by_key<T, F, K>(v1: T, v2: T, f: F) -> T
Returns the element that gives the maximum value from the specified function.
function core Stable since 1.53.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn max_by<T, F>(v1: T, v2: T, compare: F) -> T
Returns the maximum of two values with respect to the specified comparison function.
function core Stable since 1.53.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn max<T>(v1: T, v2: T) -> T
Compares and returns the maximum of two values.
function core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct Reverse<T>
A helper struct for reverse ordering.
struct core Stable since 1.19.0 Version 1.100.0-nightly
doc.rust-lang.org
fn partial_cmp(&self, other: &Rhs) -> Option<Ordering>
This method returns an ordering between self and other values if one exists.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
fn lt(&self, other: &Rhs) -> bool
Tests less than (for self and other) and is used by the < operator.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
fn le(&self, other: &Rhs) -> bool
Tests less than or equal to (for self and other) and is used by the <= operator.
method core Stable since 1.0.0 Version 1.100.0-nightly
"the strains of the project have hurt a lot of people over the years and I think maybe the only path to recovery involves getting some distance from it..."

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.