Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
doc.rust-lang.org
pub fn exp_m1(self) -> f32
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 fn exp2(self) -> f32
Returns 2^(self).
method std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn exp(self) -> f32
Returns e^(self), (the exponential function).
method std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn div_euclid(self, rhs: f32) -> f32
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 cosh(self) -> f32
Hyperbolic cosine function.
method std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn cos(self) -> f32
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 const fn ceil(self) -> f32
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 cbrt(self) -> f32
Returns the cube root of a number.
method std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn atanh(self) -> f32
Inverse hyperbolic tangent function.
method std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn atan2(self, other: f32) -> f32
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 atan(self) -> f32
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 asinh(self) -> f32
Inverse hyperbolic sine function.
method std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn asin(self) -> f32
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 acosh(self) -> f32
Inverse hyperbolic cosine function.
method std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn acos(self) -> f32
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
std::f32::abs_sub Deprecated
pub fn abs_sub(self, other: f32) -> f32
The positive difference of two numbers.
method std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
primitive f32
A 32-bit floating-point type (specifically, the "binary32" type defined in IEEE 754-2008).
primitive std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub mod f32
Constants for the f32 single-precision floating point type.
module std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub mod error
Interfaces for working with Errors.
module std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub macro eprintln!
Prints to the standard error, with a newline.
macro std Stable since 1.19.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.