Trait InfinityProperty

Source
pub trait InfinityProperty {
    // Required methods
    fn is_infinite_property(&self) -> bool;
    fn is_finite_property(&self) -> bool;
}
Expand description

A property of floating point numbers that may have infinite or finite values.

Required Methods§

Source

fn is_infinite_property(&self) -> bool

Returns whether this value is infinite.

Source

fn is_finite_property(&self) -> bool

Returns whether this value is finite.

Implementations on Foreign Types§

Source§

impl InfinityProperty for f32

Source§

impl InfinityProperty for f64

Source§

impl<T> InfinityProperty for &T
where T: InfinityProperty + ?Sized,

Source§

impl<T> InfinityProperty for &mut T
where T: InfinityProperty + ?Sized,

Implementors§