Trait Infinite

Source
pub trait Infinite: Num + PartialOrd {
    // Required methods
    fn infinity() -> Self;
    fn neg_infinity() -> Self;
    fn is_infinite(&self) -> bool;
}

Required Methods§

Source

fn infinity() -> Self

Source

fn neg_infinity() -> Self

Source

fn is_infinite(&self) -> bool

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

Source§

fn infinity() -> Self

Source§

fn neg_infinity() -> Self

Source§

fn is_infinite(&self) -> bool

Source§

impl Infinite for f64

Source§

fn infinity() -> Self

Source§

fn neg_infinity() -> Self

Source§

fn is_infinite(&self) -> bool

Implementors§