Skip to main content

MinusInfinity

Trait MinusInfinity 

Source
pub trait MinusInfinity: Sized {
    const MINUS_INFINITY: Self;

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

Required Associated Constants§

Provided Methods§

Source

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

Source

fn is_not_minus_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", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl MinusInfinity for f32

Source§

const MINUS_INFINITY: f32 = Self::NEG_INFINITY

Source§

impl MinusInfinity for f64

Source§

const MINUS_INFINITY: f64 = Self::NEG_INFINITY

Source§

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

Source§

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

Source§

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

Implementors§