Trait decorum::Infinite
[−]
[src]
pub trait Infinite: Copy + Sized { fn infinity() -> Self; fn neg_infinity() -> Self; fn is_infinite(self) -> bool; fn is_finite(self) -> bool; }
A value that can be infinite.
Required Methods
fn infinity() -> Self
fn neg_infinity() -> Self
fn is_infinite(self) -> bool
fn is_finite(self) -> bool
Implementors
impl<T> Infinite for ConstrainedFloat<T, NotNanConstraint<T>> where
T: Float,impl<T> Infinite for T where
T: Float,