pub trait NegativeZero {
const NEGATIVE_ZERO: Self;
}
Expand description
Provides the constant -0.
Required Associated Constants§
const NEGATIVE_ZERO: Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl NegativeZero for f32
The constant -0.0 for primitive floating-point types.
impl NegativeZero for f32
The constant -0.0 for primitive floating-point types.
const NEGATIVE_ZERO: f32 = -0f32
Source§impl NegativeZero for f64
The constant -0.0 for primitive floating-point types.
impl NegativeZero for f64
The constant -0.0 for primitive floating-point types.