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
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
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
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