Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
doc.rust-lang.org
pub const fn checked_isqrt(self) -> Option<Self>
Returns the integer 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 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
doc.rust-lang.org
pub const fn checked_ilog10(self) -> Option<u32>
Returns the base 10 logarithm of the number, rounded down.
method core Stable since 1.67.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn checked_ilog(self, base: Self) -> Option<u32>
Returns the logarithm of the number with respect to an arbitrary base, rounded down.
method core Stable since 1.67.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn checked_div_euclid(self, rhs: Self) -> Option<Self>
Checked Euclidean division. Computes self.div_euclid(rhs), returning None if rhs == 0 or the division results in overflow.
method core Stable since 1.38.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn checked_div(self, rhs: Self) -> Option<Self>
Checked integer division. Computes self / rhs, returning None if rhs == 0 or the division results in overflow.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn checked_add_unsigned(self, rhs: usize) -> Option<Self>
Checked addition with an unsigned integer. Computes self + rhs, returning None if overflow occurred.
method core Stable since 1.66.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn checked_add(self, rhs: Self) -> Option<Self>
Checked integer addition. 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_abs(self) -> Option<Self>
Checked absolute value. Computes self.abs(), returning None if self == MIN.
method core Stable since 1.13.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn cast_unsigned(self) -> usize
Returns the bit pattern of self reinterpreted as an unsigned integer of the same size.
method core Stable since 1.87.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn abs_diff(self, other: Self) -> usize
Computes the absolute difference between self and other.
method core Stable since 1.60.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn abs(self) -> Self
Computes the absolute value of self.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
const MIN: Self
The smallest value that can be represented by this integer type (−263 on 64-bit targets).
associated_constant core Stable since 1.43.0 Version 1.100.0-nightly
doc.rust-lang.org
const MAX: Self
The largest value that can be represented by this integer type (263 − 1 on 64-bit targets).
associated_constant core Stable since 1.43.0 Version 1.100.0-nightly
doc.rust-lang.org
const BITS: u32
The size of this integer type in bits.
associated_constant core Stable since 1.53.0 Version 1.100.0-nightly
doc.rust-lang.org
primitive isize
The pointer-sized signed integer type.
primitive core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
fn write_vectored(&mut self, bufs: &[IoSlice<'_>]) -> Result<usize>
Like write, except that it writes from a slice of buffers.
method core Stable since 1.36.0 Version 1.100.0-nightly
doc.rust-lang.org
fn write_fmt(&mut self, args: fmt::Arguments<'_>) -> Result<()>
Writes a formatted string into this writer, returning any error encountered.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
fn write_all(&mut self, buf: &[u8]) -> Result<()>
Attempts to write an entire buffer into this writer.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
fn write(&mut self, buf: &[u8]) -> Result<usize>
Writes a buffer into this writer, returning how many bytes were written.
method core Stable since 1.0.0 Version 1.100.0-nightly
"For me, acquiring a taste for rustfmt-style seems worthwhile to 'eliminate broad classes of debate', even if I didn't like some of the style when I fi..."

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.