pub trait FloatClass: Real {
// Required methods
fn is_finite(self) -> bool;
fn is_nan(self) -> bool;
fn is_infinite(self) -> bool;
fn is_normal(self) -> bool;
fn is_subnormal(self) -> bool;
fn is_sign_negative(self) -> bool;
fn is_sign_positive(self) -> bool;
}Expand description
Floating-point classification.
Required Methods§
Sourcefn is_infinite(self) -> bool
fn is_infinite(self) -> bool
Returns true if self is positive or negative infinity.
Sourcefn is_subnormal(self) -> bool
fn is_subnormal(self) -> bool
Returns true if self is subnormal (denormal).
Sourcefn is_sign_negative(self) -> bool
fn is_sign_negative(self) -> bool
Returns true if the sign bit is negative.
Sourcefn is_sign_positive(self) -> bool
fn is_sign_positive(self) -> bool
Returns true if the sign bit is positive (or zero).
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".