Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
doc.rust-lang.org
pub const fn overflowing_pow(self, exp: u32) -> (Self, bool)
Raises self to the power of exp, using exponentiation by squaring.
method core Stable since 1.34.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn overflowing_neg(self) -> (Self, bool)
Negates self in an overflowing fashion.
method core Stable since 1.7.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn overflowing_mul(self, rhs: Self) -> (Self, bool)
Calculates the multiplication of self and rhs.
method core Stable since 1.7.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn overflowing_div_euclid(self, rhs: Self) -> (Self, bool)
Calculates the quotient of Euclidean division self.div_euclid(rhs).
method core Stable since 1.38.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn overflowing_div(self, rhs: Self) -> (Self, bool)
Calculates the divisor when self is divided by rhs.
method core Stable since 1.7.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn overflowing_add_signed(self, rhs: isize) -> (Self, bool)
Calculates self + rhs with a signed rhs.
method core Stable since 1.66.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn overflowing_add(self, rhs: Self) -> (Self, bool)
Calculates self + rhs.
method core Stable since 1.7.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn next_power_of_two(self) -> Self
Returns the smallest power of two greater than or equal to self.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn next_multiple_of(self, rhs: Self) -> Self
Calculates the smallest value greater than or equal to self that is a multiple of rhs.
method core Stable since 1.73.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn min_value() -> Self
New code should prefer to use usize::MIN instead.
associated_function core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn midpoint(self, rhs: usize) -> usize
Calculates the midpoint (average) between self and rhs.
method core Stable since 1.85.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn max_value() -> Self
New code should prefer to use usize::MAX instead.
associated_function core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn lowest_one(self) -> Option<u32>
Returns the index of the lowest bit set to one in self, or None if self is 0.
method core Stable since 1.97.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn leading_zeros(self) -> u32
Returns the number of leading zeros in the binary representation of self.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn leading_ones(self) -> u32
Returns the number of leading ones in the binary representation of self.
method core Stable since 1.46.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn isqrt(self) -> Self
Returns the square root of the number, rounded down.
method core Stable since 1.84.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn isolate_lowest_one(self) -> Self
Returns self with only the least significant bit set, or 0 if the input is 0.
method core Stable since 1.97.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn isolate_highest_one(self) -> Self
Returns self with only the most significant bit set, or 0 if the input is 0.
method core Stable since 1.97.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn is_power_of_two(self) -> bool
Returns true if and only if self == 2^k for some unsigned integer k.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn is_multiple_of(self, rhs: Self) -> bool
Returns true if self is an integer multiple of rhs, and false otherwise.
method core Stable since 1.87.0 Version 1.100.0-nightly
"This is a common theme in Rust’s design: To reduce breakage as code evolves, you’re only allowed to rely on features that have been intentionally ..."

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.