Trait NegativeInfinity

Source
pub trait NegativeInfinity {
    const NEGATIVE_INFINITY: Self;
}
Expand description

Provides the constant -Infinity.

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 NegativeInfinity for f32

The constant -Infinity for primitive floating-point types.

Source§

const NEGATIVE_INFINITY: f32 = -Inf_f32

Source§

impl NegativeInfinity for f64

The constant -Infinity for primitive floating-point types.

Source§

const NEGATIVE_INFINITY: f64 = -Inf_f64

Implementors§