Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
doc.rust-lang.org
pub const fn unbounded_shl(self, rhs: u32) -> usize
Unbounded shift left. Computes self << rhs, without bounding the value of rhs.
method core Stable since 1.87.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn trailing_zeros(self) -> u32
Returns the number of trailing 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 trailing_ones(self) -> u32
Returns the number of trailing 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 to_ne_bytes(self) -> [u8; 8]
Returns the memory representation of this integer as a byte array in native byte order.
method core Stable since 1.32.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn to_le_bytes(self) -> [u8; 8]
Returns the memory representation of this integer as a byte array in little-endian byte order.
method core Stable since 1.32.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn to_le(self) -> Self
Converts self to little endian from the target's endianness.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn to_be_bytes(self) -> [u8; 8]
Returns the memory representation of this integer as a byte array in big-endian (network) byte order.
method core Stable since 1.32.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn to_be(self) -> Self
Converts self to big endian from the target's endianness.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn swap_bytes(self) -> Self
Reverses the byte order of the integer.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn strict_sub_signed(self, rhs: isize) -> Self
Strict subtraction with a signed 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_sub(self, rhs: Self) -> Self
Strict integer subtraction. 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_shr(self, rhs: u32) -> Self
Strict shift right. Computes self >> rhs, panicking if rhs is larger than or equal to the number of bits in self.
method core Stable since 1.91.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn strict_shl(self, rhs: u32) -> Self
Strict shift left. Computes self << rhs, panicking if rhs is larger than or equal to the number of bits in self.
method core Stable since 1.91.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn strict_rem_euclid(self, rhs: Self) -> Self
Strict Euclidean modulo. Computes self.rem_euclid(rhs).
method core Stable since 1.91.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn strict_rem(self, rhs: Self) -> Self
Strict integer remainder. Computes self % rhs.
method core Stable since 1.91.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn strict_pow(self, exp: u32) -> Self
Strict exponentiation. Computes self.pow(exp), panicking if overflow occurred.
method core Stable since 1.91.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn strict_neg(self) -> Self
Strict negation. Computes -self, panicking unless self == 0.
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).
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.
method core Stable since 1.91.0 Version 1.100.0-nightly
"You might be asking: why did you rewrite \[...\] in Rust? And yeah, I don’t really have a good reason. It’s a hobby project. Like gardening, but w..."

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.