Skip to main content

NegativeZero

Trait NegativeZero 

Source
pub trait NegativeZero {
    const NEGATIVE_ZERO: Self;
}
Expand description

Provides the constant -0.

Required Associated Constants§

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.

Source§

impl NegativeZero for f64

The constant -0.0 for primitive floating-point types.

Implementors§