HasInfinity

Trait HasInfinity 

Source
pub trait HasInfinity {
    const NINFTY: Self;
    const INFTY: Self;
}
Expand description

Trait for box boundary types

Required Associated Constants§

Source

const NINFTY: Self

Value representing negative infinity

Source

const INFTY: Self

Value representing positive infinity

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

Source§

const NINFTY: Self = -Inf_f32

Source§

const INFTY: Self = +Inf_f32

Source§

impl HasInfinity for f64

Source§

const NINFTY: Self = -Inf_f64

Source§

const INFTY: Self = +Inf_f64

Implementors§