Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
doc.rust-lang.org
pub const fn checked_add_unsigned(self, rhs: u128) -> Option<Self>
Checked addition with an unsigned integer. Computes self + rhs, returning None if overflow occurred.
method core Stable since 1.66.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn checked_add(self, rhs: Self) -> Option<Self>
Checked integer addition. Computes self + rhs, returning None if overflow occurred.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn checked_abs(self) -> Option<Self>
Checked absolute value. Computes self.abs(), returning None if self == MIN.
method core Stable since 1.13.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn cast_unsigned(self) -> u128
Returns the bit pattern of self reinterpreted as an unsigned integer of the same size.
method core Stable since 1.87.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn abs_diff(self, other: Self) -> u128
Computes the absolute difference between self and other.
method core Stable since 1.60.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn abs(self) -> Self
Computes the absolute value of self.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
const MIN: Self
The smallest value that can be represented by this integer type (−2127).
associated_constant core Stable since 1.43.0 Version 1.100.0-nightly
doc.rust-lang.org
const MAX: Self
The largest value that can be represented by this integer type (2127 − 1).
associated_constant core Stable since 1.43.0 Version 1.100.0-nightly
doc.rust-lang.org
const BITS: u32
The size of this integer type in bits.
associated_constant core Stable since 1.53.0 Version 1.100.0-nightly
doc.rust-lang.org
primitive i128
The 128-bit signed integer type.
primitive core Stable since 1.26.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const unsafe fn unreachable_unchecked() -> never
Informs the compiler that the site which is calling this function is not reachable, possibly enabling further optimizations.
function core Stable since 1.27.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn spin_loop()
Emits a machine instruction to signal the processor that it is running in a busy-wait spin-loop ("spin lock").
function core Stable since 1.49.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn select_unpredictable<T>(condition: bool, true_val: T, false_val: T) -> T
Returns either true_val or false_val depending on the value of condition, with a hint to the compiler that condition is unlikely to be correctly predicted by a CPU’s branch predictor.
function core Stable since 1.88.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn cold_path()
Hints to the compiler that given path is cold, i.e., unlikely to be taken. The compiler may choose to optimize paths that are not cold at the expense of paths that are cold.
function core Stable since 1.95.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn black_box<T>(dummy: T) -> T
An identity function that hints to the compiler to be maximally pessimistic about what black_box could do.
function core Stable since 1.66.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const unsafe fn assert_unchecked(cond: bool)
Makes a soundness promise to the compiler that cond holds.
function core Stable since 1.81.0 Version 1.100.0-nightly
doc.rust-lang.org
pub mod hint
Hints to compiler that affects how code should be emitted or optimized.
module core Stable since 1.27.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn new_with_keys(key0: u64, key1: u64) -> SipHasher
Creates a SipHasher that is keyed off the provided keys.
associated_function core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn new() -> SipHasher
Creates a new SipHasher with the two initial keys set to 0.
associated_function core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct SipHasher
An implementation of SipHash 2-4.
struct core Stable since 1.0.0 Version 1.100.0-nightly
"In Rust We Trust"

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.