Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
doc.rust-lang.org
pub const fn trunc(self) -> f64
Returns the integer part of self. This means that non-integer numbers are always truncated towards zero.
method std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn tanh(self) -> f64
Hyperbolic tangent function.
method std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn tan(self) -> f64
Computes the tangent of a number (in radians).
method std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn sqrt(self) -> f64
Returns the square root of a number.
method std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn sinh(self) -> f64
Hyperbolic sine function.
method std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn sin_cos(self) -> (f64, f64)
Simultaneously computes the sine and cosine of the number, x. Returns (sin(x), cos(x)).
method std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn sin(self) -> f64
Computes the sine of a number (in radians).
method std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn round_ties_even(self) -> f64
Returns the nearest integer to a number. Rounds half-way cases to the number with an even least significant digit.
method std Stable since 1.77.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn round(self) -> f64
Returns the nearest integer to self. If a value is half-way between two integers, round away from 0.0.
method std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn rem_euclid(self, rhs: f64) -> f64
Calculates the least nonnegative remainder of self when divided by rhs.
method std Stable since 1.38.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn powi(self, n: i32) -> f64
Raises a number to an integer power.
method std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn powf(self, n: f64) -> f64
Raises a number to a floating point power.
method std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn mul_add(self, a: f64, b: f64) -> f64
Fused multiply-add. Computes (self * a) + b with only one rounding error, yielding a more accurate result than an unfused multiply-add.
method std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn log2(self) -> f64
Returns the base 2 logarithm of the number.
method std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn log10(self) -> f64
Returns the base 10 logarithm of the number.
method std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn log(self, base: f64) -> f64
Returns the logarithm of the number with respect to an arbitrary base.
method std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn ln_1p(self) -> f64
Returns ln(1+n) (natural logarithm) more accurately than if the operations were performed separately.
method std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn ln(self) -> f64
Returns the natural logarithm of the number.
method std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn hypot(self, other: f64) -> f64
Compute the distance between the origin and a point (x, y) on the Euclidean plane. Equivalently, compute the length of the hypotenuse of a right-angle triangle with other sides having length x.abs() and y.abs().
method std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn fract(self) -> f64
Returns the fractional part of self.
method std Stable since 1.0.0 Version 1.100.0-nightly
"Now macros are fine, I mean we use them for implementing internals and you know if you have something that \[...\] needs to be implemented for lots an..."

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.