Skip to main content

IsInfinity

Trait IsInfinity 

Source
pub trait IsInfinity {
    // Required method
    fn is_infinity(&self) -> bool;
}
Expand description

Trait defining instance method is_infinity() : bool that indicates whether the implementing type instance is conceptually (or actually) infinite.

§Additional Implementations on Foreign Types

§Built-in Types

If the feature "implement-IsInfinity-for-built_ins" is defined (as it is by "default"), then this is also implemented for the following types:

Required Methods§

Source

fn is_infinity(&self) -> bool

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl IsInfinity for f32

Source§

impl IsInfinity for f64

Source§

impl<T: IsInfinity + ?Sized> IsInfinity for Box<T>

Available on non-crate feature nostd only.
Source§

impl<T: IsInfinity + ?Sized> IsInfinity for Rc<T>

Available on non-crate feature nostd only.

Implementors§