Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
doc.rust-lang.org
pub const fn strict_neg(self) -> Self
Strict negation. Computes -self, panicking if self == MIN.
method core Stable since 1.91.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn strict_mul(self, rhs: Self) -> Self
Strict integer multiplication. Computes self * rhs, panicking if overflow occurred.
method core Stable since 1.91.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn strict_div_euclid(self, rhs: Self) -> Self
Strict Euclidean division. Computes self.div_euclid(rhs), panicking if overflow occurred.
method core Stable since 1.91.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn strict_div(self, rhs: Self) -> Self
Strict integer division. Computes self / rhs, panicking if overflow occurred.
method core Stable since 1.91.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn strict_add_unsigned(self, rhs: u16) -> Self
Strict addition with an unsigned integer. Computes self + rhs, panicking if overflow occurred.
method core Stable since 1.91.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn strict_add(self, rhs: Self) -> Self
Strict integer addition. Computes self + rhs, panicking if overflow occurred.
method core Stable since 1.91.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn strict_abs(self) -> Self
Strict absolute value. Computes self.abs(), panicking if self == MIN.
method core Stable since 1.91.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn signum(self) -> Self
Returns a number representing sign of self.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn saturating_sub_unsigned(self, rhs: u16) -> Self
Saturating subtraction with an unsigned integer. Computes self - rhs, saturating at the numeric bounds instead of overflowing.
method core Stable since 1.66.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn saturating_sub(self, rhs: Self) -> Self
Saturating integer subtraction. Computes self - rhs, saturating at the numeric bounds instead of overflowing.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn saturating_pow(self, exp: u32) -> Self
Saturating integer exponentiation. Computes self.pow(exp), saturating at the numeric bounds instead of overflowing.
method core Stable since 1.34.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn saturating_neg(self) -> Self
Saturating integer negation. Computes -self, returning MAX if self == MIN instead of overflowing.
method core Stable since 1.45.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn saturating_mul(self, rhs: Self) -> Self
Saturating integer multiplication. Computes self * rhs, saturating at the numeric bounds instead of overflowing.
method core Stable since 1.7.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn saturating_div(self, rhs: Self) -> Self
Saturating integer division. Computes self / rhs, saturating at the numeric bounds instead of overflowing.
method core Stable since 1.58.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn saturating_add_unsigned(self, rhs: u16) -> Self
Saturating addition with an unsigned integer. Computes self + rhs, saturating at the numeric bounds instead of overflowing.
method core Stable since 1.66.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn saturating_add(self, rhs: Self) -> Self
Saturating integer addition. Computes self + rhs, saturating at the numeric bounds instead of overflowing.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn saturating_abs(self) -> Self
Saturating absolute value. Computes self.abs(), returning MAX if self == MIN instead of overflowing.
method core Stable since 1.45.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn rotate_right(self, n: u32) -> Self
Shifts the bits to the right by a specified amount, n, wrapping the truncated bits to the beginning of the resulting integer.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn rotate_left(self, n: u32) -> Self
Shifts the bits to the left by a specified amount, n, wrapping the truncated bits to the end of the resulting integer.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn reverse_bits(self) -> Self
Reverses the order of bits in the integer. The least significant bit becomes the most significant bit, second least-significant bit becomes second most-significant bit, etc.
method core Stable since 1.37.0 Version 1.100.0-nightly
"*relatively speaking*, my rust programs are like Leonardo DiCaprio in the Revenant, killing grizzly bears with their bare hands, dying and being froze..."

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.