Trait Infinity

Source
pub trait Infinity {
    const INFINITY: Self;
}
Expand description

Provides the constant (positive) Infinity.

Required Associated Constants§

Source

const INFINITY: 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 Infinity for f32

The constant Infinity for primitive floating-point types.

Source§

const INFINITY: f32 = +Inf_f32

Source§

impl Infinity for f64

The constant Infinity for primitive floating-point types.

Source§

const INFINITY: f64 = +Inf_f64

Implementors§