Trait decorum::Infinite

source ·
pub trait Infinite: Copy + NumCast {
    fn infinity() -> Self;
    fn neg_infinity() -> Self;
    fn is_infinite(self) -> bool;
    fn is_finite(self) -> bool;
}
Expand description

A floating-point value that can be infinite (-INF or INF).

Required Methods

Implementors