Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
doc.rust-lang.org
pub const fn is_normal(self) -> bool
Returns true if the number is neither zero, infinite, subnormal, or NaN.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn is_nan(self) -> bool
Returns true if this value is NaN.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn is_infinite(self) -> bool
Returns true if this value is positive infinity or negative infinity, and false otherwise.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn is_finite(self) -> bool
Returns true if this number is neither infinite nor NaN.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn from_ne_bytes(bytes: [u8; 4]) -> Self
Creates a floating point value from its representation as a byte array in native endian.
associated_function core Stable since 1.40.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn from_le_bytes(bytes: [u8; 4]) -> Self
Creates a floating point value from its representation as a byte array in little endian.
associated_function core Stable since 1.40.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn from_bits(v: u32) -> Self
Raw transmutation from u32.
associated_function core Stable since 1.20.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn from_be_bytes(bytes: [u8; 4]) -> Self
Creates a floating point value from its representation as a byte array in big endian.
associated_function core Stable since 1.40.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn copysign(self, sign: f32) -> f32
Returns a number composed of the magnitude of self and the sign of sign.
method core Stable since 1.35.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const TAU: f32
The full circle constant (τ)
constant core Stable since 1.47.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const SQRT_2: f32
sqrt(2)
constant core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const PI: f32
Archimedes' constant (π)
constant core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const LOG2_E: f32
log2(e)
constant core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const LOG2_10: f32
log2(10)
constant core Stable since 1.43.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const LOG10_E: f32
log10(e)
constant core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const LOG10_2: f32
log10(2)
constant core Stable since 1.43.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const LN_2: f32
ln(2)
constant core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const LN_10: f32
ln(10)
constant core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const GOLDEN_RATIO: f32
The golden ratio (φ)
constant core Stable since 1.94.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const FRAC_PI_8: f32
π/8
constant core Stable since 1.0.0 Version 1.100.0-nightly
"If a normal add is [a waffle iron ](https://en.wikipedia.org/wiki/Waffle_iron), SIMD add is a double or quadruple waffle iron. You can make 2 or 4 or ..."

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.