Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
doc.rust-lang.org
pub const FRAC_PI_6: f32
π/6
constant core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const FRAC_PI_4: f32
π/4
constant core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const FRAC_PI_3: f32
π/3
constant core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const FRAC_PI_2: f32
π/2
constant core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const FRAC_2_SQRT_PI: f32
2/sqrt(π)
constant core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const FRAC_2_PI: f32
2/π
constant core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const FRAC_1_SQRT_2: f32
1/sqrt(2)
constant core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const FRAC_1_PI: f32
1/π
constant core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const EULER_GAMMA: f32
The Euler-Mascheroni constant (γ)
constant core Stable since 1.94.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const E: f32
Euler's number (e)
constant core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub mod consts
Basic mathematical constants.
module core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn classify(self) -> FpCategory
Returns the floating point category of the number. If only one property is going to be tested, it is generally faster to use the specific predicate instead.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn clamp(self, min: f32, max: f32) -> f32
Restrict a value to a certain interval unless it is NaN.
method core Stable since 1.50.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn algebraic_sub(self, rhs: f32) -> f32
Float subtraction that allows optimizations based on algebraic rules.
method core Stable since 1.98.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn algebraic_rem(self, rhs: f32) -> f32
Float remainder that allows optimizations based on algebraic rules.
method core Stable since 1.98.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn algebraic_mul(self, rhs: f32) -> f32
Float multiplication that allows optimizations based on algebraic rules.
method core Stable since 1.98.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn algebraic_div(self, rhs: f32) -> f32
Float division that allows optimizations based on algebraic rules.
method core Stable since 1.98.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn algebraic_add(self, rhs: f32) -> f32
Float addition that allows optimizations based on algebraic rules.
method core Stable since 1.98.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn abs(self) -> f32
Computes the absolute value of self.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
core::f32::RADIX Deprecated
pub const RADIX: u32
The radix or base of the internal representation of f32. Use f32::RADIX instead.
constant core Stable since 1.0.0 Version 1.100.0-nightly
"Clippy’s Favorite Activity Is Criticizing Clippy’s Codebase"

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.