Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
doc.rust-lang.org
pub const fn abs_diff(self, other: Self) -> Self
Computes the absolute difference between self and other.
method core Stable since 1.60.0 Version 1.100.0-nightly
doc.rust-lang.org
const MIN: Self
The smallest value that can be represented by this integer type.
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 (2128 − 1).
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 u128
The 128-bit unsigned integer type.
primitive core Stable since 1.26.0 Version 1.100.0-nightly
doc.rust-lang.org
primitive tuple
A finite heterogeneous sequence, (T, U, ..).
primitive core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
core::try Deprecated
pub macro try!
Unwraps a result or propagates its error.
macro core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub macro todo!
Indicates unfinished code.
macro core Stable since 1.40.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct TryFromFloatSecsError
An error which can be returned when converting a floating-point value of seconds into a Duration.
struct core Stable since 1.66.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn try_from_secs_f64(secs: f64) -> Result<Duration, TryFromFloatSecsError>
The checked version of from_secs_f64.
associated_function core Stable since 1.66.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn try_from_secs_f32(secs: f32) -> Result<Duration, TryFromFloatSecsError>
The checked version of from_secs_f32.
associated_function core Stable since 1.66.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn subsec_nanos(&self) -> u32
Returns the fractional part of this Duration, in nanoseconds.
method core Stable since 1.3.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn subsec_millis(&self) -> u32
Returns the fractional part of this Duration, in whole milliseconds.
method core Stable since 1.27.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn subsec_micros(&self) -> u32
Returns the fractional part of this Duration, in whole microseconds.
method core Stable since 1.27.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn saturating_sub(self, rhs: Duration) -> Duration
Saturating Duration subtraction. Computes self - other, returning Duration::ZERO if the result would be negative or if overflow occurred.
method core Stable since 1.53.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn saturating_mul(self, rhs: u32) -> Duration
Saturating Duration multiplication. Computes self * other, returning Duration::MAX if overflow occurred.
method core Stable since 1.53.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn saturating_add(self, rhs: Duration) -> Duration
Saturating Duration addition. Computes self + other, returning Duration::MAX if overflow occurred.
method core Stable since 1.53.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn new(secs: u64, nanos: u32) -> Duration
Creates a new Duration from the specified number of whole seconds and additional nanoseconds.
associated_function core Stable since 1.3.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn mul_f64(self, rhs: f64) -> Duration
Multiplies Duration by f64.
method core Stable since 1.38.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn mul_f32(self, rhs: f32) -> Duration
Multiplies Duration by f32.
method core Stable since 1.38.0 Version 1.100.0-nightly
"❤️🦀❤️ 100,000 issues filled with love, compassion and a wholesome community. Thank you, Rust community, for being one of the most, if not ..."

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.