Skip to main content

Infinity

Trait Infinity 

Source
pub trait Infinity: Sized {
    const INFINITY: Self;

    // Provided methods
    fn is_infinity(&self) -> bool
       where Self: PartialEq { ... }
    fn is_not_infinity(&self) -> bool
       where Self: PartialEq { ... }
}

Required Associated Constants§

Source

const INFINITY: Self

Provided Methods§

Source

fn is_infinity(&self) -> bool
where Self: PartialEq,

Source

fn is_not_infinity(&self) -> bool
where Self: PartialEq,

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: f32 = Self::INFINITY

Source§

impl Infinity for f64

Source§

const INFINITY: f64 = Self::INFINITY

Source§

impl<T, const N: usize> Infinity for [T; N]
where T: Infinity,

Source§

impl<T> Infinity for Saturating<T>
where T: Infinity,

Source§

impl<T> Infinity for Wrapping<T>
where T: Infinity,

Implementors§

Source§

impl<P> Infinity for AngleOf<P>
where P: Infinity,

Source§

const INFINITY: Self

Source§

impl<P> Infinity for TimeOf<P>
where P: Infinity,

Source§

const INFINITY: Self

Source§

impl<T, const N: usize> Infinity for Vector<T, N>
where T: Infinity + Copy,

Source§

const INFINITY: Self

Source§

impl<T> Infinity for RectangleOf<T>
where T: Infinity + Copy,

Source§

const INFINITY: Self