pub trait RealNumber:
Scalar
+ Precision
+ Invariant {
const TWO: &'static Self;
const THREE: &'static Self;
const FIVE: &'static Self;
const TEN: &'static Self;
const NAN: &'static Option<Self> = _;
const INF: &'static Option<Self> = _;
const NEG_INF: &'static Option<Self> = _;
// Provided methods
fn is_nan(&self) -> bool { ... }
fn is_inf(&self) -> bool { ... }
fn is_neg_inf(&self) -> bool { ... }
fn is_finite(&self) -> bool { ... }
}Required Associated Constants§
const TWO: &'static Self
const THREE: &'static Self
const FIVE: &'static Self
const TEN: &'static Self
Provided Associated Constants§
const NAN: &'static Option<Self> = _
const INF: &'static Option<Self> = _
const NEG_INF: &'static Option<Self> = _
Provided Methods§
fn is_nan(&self) -> bool
fn is_inf(&self) -> bool
fn is_neg_inf(&self) -> bool
fn is_finite(&self) -> bool
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.