Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
doc.rust-lang.org
pub macro write!
Writes formatted data into a buffer.
macro core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn wrapping_sub_signed(self, rhs: isize) -> Self
Wrapping (modular) subtraction with a signed integer. Computes self - rhs, wrapping around at the boundary of the type.
method core Stable since 1.90.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn wrapping_sub(self, rhs: Self) -> Self
Wrapping (modular) subtraction. Computes self - rhs, wrapping around at the boundary of the type.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn wrapping_shr(self, rhs: u32) -> Self
Panic-free bitwise shift-right; yields self >> mask(rhs), where mask removes any high-order bits of rhs that would cause the shift to exceed the bitwidth of the type.
method core Stable since 1.2.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn wrapping_shl(self, rhs: u32) -> Self
Panic-free bitwise shift-left; yields self << mask(rhs), where mask removes any high-order bits of rhs that would cause the shift to exceed the bitwidth of the type.
method core Stable since 1.2.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn wrapping_rem_euclid(self, rhs: Self) -> Self
Wrapping Euclidean modulo. Computes self.rem_euclid(rhs).
method core Stable since 1.38.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn wrapping_rem(self, rhs: Self) -> Self
Wrapping (modular) remainder. Computes self % rhs.
method core Stable since 1.2.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn wrapping_pow(self, exp: u32) -> Self
Wrapping (modular) exponentiation. Computes self.pow(exp), wrapping around at the boundary of the type.
method core Stable since 1.34.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn wrapping_neg(self) -> Self
Wrapping (modular) negation. Computes -self, wrapping around at the boundary of the type.
method core Stable since 1.2.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn wrapping_mul(self, rhs: Self) -> Self
Wrapping (modular) multiplication. Computes self * rhs, wrapping around at the boundary of the type.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn wrapping_div_euclid(self, rhs: Self) -> Self
Wrapping Euclidean division. Computes self.div_euclid(rhs).
method core Stable since 1.38.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn wrapping_div(self, rhs: Self) -> Self
Wrapping (modular) division. Computes self / rhs.
method core Stable since 1.2.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn wrapping_add_signed(self, rhs: isize) -> Self
Wrapping (modular) addition with a signed integer. Computes self + rhs, wrapping around at the boundary of the type.
method core Stable since 1.66.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn wrapping_add(self, rhs: Self) -> Self
Wrapping (modular) addition. Computes self + rhs, wrapping around at the boundary of the type.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const unsafe fn unchecked_sub(self, rhs: Self) -> Self
Unchecked integer subtraction. Computes self - rhs, assuming overflow cannot occur.
method core Stable since 1.79.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const unsafe fn unchecked_shr(self, rhs: u32) -> Self
Unchecked shift right. Computes self >> rhs, assuming that rhs is less than the number of bits in self.
method core Stable since 1.93.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const unsafe fn unchecked_shl(self, rhs: u32) -> Self
Unchecked shift left. Computes self << rhs, assuming that rhs is less than the number of bits in self.
method core Stable since 1.93.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const unsafe fn unchecked_mul(self, rhs: Self) -> Self
Unchecked integer multiplication. Computes self * rhs, assuming overflow cannot occur.
method core Stable since 1.79.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const unsafe fn unchecked_add(self, rhs: Self) -> Self
Unchecked integer addition. Computes self + rhs, assuming overflow cannot occur.
method core Stable since 1.79.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn unbounded_shr(self, rhs: u32) -> usize
Unbounded shift right. Computes self >> rhs, without bounding the value of rhs.
method core Stable since 1.87.0 Version 1.100.0-nightly
"Think of "it works" when you have UB like this: You've flipped a coin 1 time and it's come up heads and you've concluded it's never tails."
— @mirashii on the community discord

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.