Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
doc.rust-lang.org
primitive f64
A 64-bit floating-point type (specifically, the "binary64" type defined in IEEE 754-2008).
primitive std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
std::f64::abs_sub Deprecated
pub fn abs_sub(self, other: f64) -> f64
The positive difference of two numbers.
method std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn acos(self) -> f64
Computes the arccosine of a number. Return value is in radians in the range 0, pi or NaN if the number is outside the range -1, 1.
method std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn acosh(self) -> f64
Inverse hyperbolic cosine function.
method std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn asin(self) -> f64
Computes the arcsine of a number. Return value is in radians in the range -pi/2, pi/2 or NaN if the number is outside the range -1, 1.
method std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn asinh(self) -> f64
Inverse hyperbolic sine function.
method std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn atan(self) -> f64
Computes the arctangent of a number. Return value is in radians in the range -pi/2, pi/2;
method std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn atan2(self, other: f64) -> f64
Computes the four quadrant arctangent of self (y) and other (x) in radians.
method std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn atanh(self) -> f64
Inverse hyperbolic tangent function.
method std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn cbrt(self) -> f64
Returns the cube root of a number.
method std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn ceil(self) -> f64
Returns the smallest integer that is greater than or equal to self.
method std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn cos(self) -> f64
Computes the cosine of a number (in radians).
method std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn cosh(self) -> f64
Hyperbolic cosine function.
method std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn div_euclid(self, rhs: f64) -> f64
Calculates Euclidean division, the matching method for rem_euclid.
method std Stable since 1.38.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn exp(self) -> f64
Returns e^(self), (the exponential function).
method std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn exp2(self) -> f64
Returns 2^(self).
method std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn exp_m1(self) -> f64
Returns e^(self) - 1 in a way that is accurate even if the number is close to zero.
method std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn floor(self) -> f64
Returns the largest integer that is less than or equal to self.
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
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
"Writing return \<something\>; at the end of a function in Rust is a bit like answering the question "Do you like potatoes?" with "Yes, I like potatoes..."

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.