Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
doc.rust-lang.org
const MANTISSA_DIGITS: u32
Number of significant digits in base 2.
associated_constant core Stable since 1.43.0 Version 1.100.0-nightly
doc.rust-lang.org
core::f32::INFINITY Deprecated
pub const INFINITY: f32
Infinity (∞). Use f32::INFINITY instead.
constant core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
const INFINITY: f32
Infinity (∞).
associated_constant core Stable since 1.43.0 Version 1.100.0-nightly
doc.rust-lang.org
core::f32::EPSILON Deprecated
pub const EPSILON: f32
Machine epsilon value for f32. Use f32::EPSILON instead.
constant core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
const EPSILON: f32
Machine epsilon value for f32.
associated_constant core Stable since 1.43.0 Version 1.100.0-nightly
doc.rust-lang.org
core::f32::DIGITS Deprecated
pub const DIGITS: u32
Approximate number of significant digits in base 10. Use f32::DIGITS instead.
constant core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
const DIGITS: u32
Approximate number of significant digits in base 10.
associated_constant core Stable since 1.43.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 core 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 core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
fn source(&self) -> Option<&dyn Error + 'static>
Returns the lower-level source of this error, if any.
method core Stable since 1.30.0 Version 1.100.0-nightly
doc.rust-lang.org
fn description(&self) -> &str
if let Err(e) = "xc".parse::<u32>() { // Print `e` itself, no need for description(). eprintln!("Error: {e}"); }
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub trait Error
Error is a trait representing the basic expectations for error values, i.e., values of type E in Result<T, E>.
trait core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub mod error
Interfaces for working with Errors.
module core Stable since 1.81.0 Version 1.100.0-nightly
doc.rust-lang.org
pub macro env!
Inspects an environment variable at compile time.
macro core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
fn default() -> Self
Returns the "default value" for a type.
associated_function core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub trait Default
A trait for giving a type a useful default value.
trait core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
derive #[derive(Default)]
Derive macro generating an impl of the trait Default.
derive_macro core Stable since 1.38.0 Version 1.100.0-nightly
doc.rust-lang.org
pub mod default
The Default trait for types with a default value.
module core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub macro debug_assert_ne!
Asserts that two expressions are not equal to each other.
macro core Stable since 1.13.0 Version 1.100.0-nightly
doc.rust-lang.org
pub macro debug_assert_eq!
Asserts that two expressions are equal to each other.
macro core Stable since 1.0.0 Version 1.100.0-nightly
"This time, there were two crates and one quote, which is not much, but ok. Keep it up, folks!"

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.