Skip to main content

Infinity

Trait Infinity 

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

Trait for types that have a concept of positive infinity.

Required Associated Constants§

Source

const INFINITY: Self

Returns the positive infinity value for the type.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Infinity for f32

Source§

const INFINITY: Self = Self::INFINITY

Source§

impl Infinity for f64

Source§

const INFINITY: Self = Self::INFINITY

Implementors§