pub trait IsInfinite {
// Required method
fn is_infinite_(&self) -> bool;
}
Expand description
This trait provides the interface for the function used to check if a number is infinite.
Required Methods§
Sourcefn is_infinite_(&self) -> bool
fn is_infinite_(&self) -> bool
Returns true
if self
is positive infinity or negative infinity.
Implementations on Foreign Types§
Source§impl IsInfinite for f64
impl IsInfinite for f64
Source§fn is_infinite_(&self) -> bool
fn is_infinite_(&self) -> bool
Returns true
if self
is positive infinity or negative infinity, and false
otherwise.
Source§impl IsInfinite for Complex<f64>
impl IsInfinite for Complex<f64>
Source§fn is_infinite_(&self) -> bool
fn is_infinite_(&self) -> bool
Returns true
if self
is positive infinity or negative infinity, and false
otherwise.