Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
doc.rust-lang.org
pub const fn from_be_bytes(bytes: [u8; 4]) -> Self
Creates a native endian integer value from its representation as a byte array in big endian.
associated_function core Stable since 1.32.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn from_be(x: Self) -> Self
Converts an integer from big endian to the target's endianness.
associated_function core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn format_into(self, buf: &mut NumBuffer<Self>) -> &str
Allows users to write an integer (in unsigned decimal format) into a variable buf of type NumBuffer that is passed by the caller by mutable reference.
method core Stable since 1.98.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn div_euclid(self, rhs: Self) -> Self
Performs Euclidean division.
method core Stable since 1.38.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn div_ceil(self, rhs: Self) -> Self
Calculates the quotient of self and rhs, rounding the result towards positive infinity.
method core Stable since 1.73.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn count_zeros(self) -> u32
Returns the number of 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 count_ones(self) -> u32
Returns the number of ones 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 checked_sub_signed(self, rhs: i32) -> Option<Self>
Checked subtraction with a signed integer. Computes self - rhs, returning None if overflow occurred.
method core Stable since 1.90.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn checked_sub(self, rhs: Self) -> Option<Self>
Checked integer subtraction. 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_signed_diff(self, rhs: Self) -> Option<i32>
Checked integer subtraction. Computes self - rhs and checks if the result fits into an i32, returning None if overflow occurred.
method core Stable since 1.91.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn checked_shr(self, rhs: u32) -> Option<Self>
Checked shift right. Computes self >> rhs, returning None if rhs is larger than or equal to the number of bits in self.
method core Stable since 1.7.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn checked_shl(self, rhs: u32) -> Option<Self>
Checked shift left. Computes self << rhs, returning None if rhs is larger than or equal to the number of bits in self.
method core Stable since 1.7.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn checked_rem_euclid(self, rhs: Self) -> Option<Self>
Checked Euclidean modulo. Computes self.rem_euclid(rhs), returning None if rhs == 0.
method core Stable since 1.38.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn checked_rem(self, rhs: Self) -> Option<Self>
Checked integer remainder. Computes self % rhs, returning None if rhs == 0.
method core Stable since 1.7.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn checked_pow(self, exp: u32) -> Option<Self>
Checked exponentiation. Computes self.pow(exp), returning None if overflow occurred.
method core Stable since 1.34.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn checked_next_power_of_two(self) -> Option<Self>
Returns the smallest power of two greater than or equal to self. If the next power of two is greater than the type's maximum value, None is returned, otherwise the power of two is wrapped in Some.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn checked_next_multiple_of(self, rhs: Self) -> Option<Self>
Calculates the smallest value greater than or equal to self that is a multiple of rhs. Returns None if rhs is zero or the operation would result in overflow.
method core Stable since 1.73.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn checked_neg(self) -> Option<Self>
Checked negation. Computes -self, returning None unless self == 0.
method core Stable since 1.7.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn checked_mul(self, rhs: Self) -> Option<Self>
Checked integer multiplication. 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_ilog2(self) -> Option<u32>
Returns the base 2 logarithm of the number, rounded down.
method core Stable since 1.67.0 Version 1.100.0-nightly
""Rust compilation is so slow that I can fix the bugs while it still compiles the crates""

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.