pub fn is_inf(x: f64) -> bool
Returns true if x is either positive infinity or negative infinity. See also [method is_finite] and [method is_nan].
true
x