Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
doc.rust-lang.org
fn gt(&self, other: &Rhs) -> bool
Tests greater 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 ge(&self, other: &Rhs) -> bool
Tests greater 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
doc.rust-lang.org
pub trait PartialOrd<Rhs>
Trait for types that form a partial order.
trait core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
derive #[derive(PartialOrd)]
Derive macro generating an impl of the trait PartialOrd. 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
fn ne(&self, other: &Rhs) -> bool
Inequality operator !=.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
fn eq(&self, other: &Rhs) -> bool
Equality operator ==.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub trait PartialEq<Rhs>
Trait for comparisons using the equality operator.
trait core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
derive #[derive(PartialEq)]
Derive macro generating an impl of the trait PartialEq. 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 const fn then_with<F>(self, f: F) -> Ordering
Chains the ordering with the given function.
method core Stable since 1.17.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn then(self, other: Ordering) -> Ordering
Chains two orderings.
method core Stable since 1.17.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn reverse(self) -> Ordering
Reverses the Ordering.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn is_ne(self) -> bool
Returns true if the ordering is not the Equal variant.
method core Stable since 1.53.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn is_lt(self) -> bool
Returns true if the ordering is the Less variant.
method core Stable since 1.53.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn is_le(self) -> bool
Returns true if the ordering is either the Less or Equal variant.
method core Stable since 1.53.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn is_gt(self) -> bool
Returns true if the ordering is the Greater variant.
method core Stable since 1.53.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn is_ge(self) -> bool
Returns true if the ordering is either the Greater or Equal variant.
method core Stable since 1.53.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn is_eq(self) -> bool
Returns true if the ordering is the Equal variant.
method core Stable since 1.53.0 Version 1.100.0-nightly
doc.rust-lang.org
pub enum Ordering
An Ordering is the result of a comparison between two values.
enum core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values.
method core Stable since 1.21.0 Version 1.100.0-nightly
doc.rust-lang.org
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values.
method core Stable since 1.21.0 Version 1.100.0-nightly
"Sometimes you don't *want* the code to compile. The compiler's job is often to tell you that your code doesn't compile, rather than trying to find som..."

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.