pub trait Real:
Copy
+ Debug
+ PartialOrd
+ Add<Output = Self>
+ Sub<Output = Self>
+ Mul<Output = Self>
+ Div<Output = Self>
+ Neg<Output = Self>
+ AddAssign
+ SubAssign
+ MulAssign
+ Sum
+ 'static {
const ZERO: Self;
const ONE: Self;
const EPSILON: Self;
// Required methods
fn from_f64(x: f64) -> Self;
fn to_f64(self) -> f64;
fn abs(self) -> Self;
fn sqrt(self) -> Self;
fn recip(self) -> Self;
fn mul_add(self, a: Self, b: Self) -> Self;
fn is_finite(self) -> bool;
fn max(self, other: Self) -> Self;
fn min(self, other: Self) -> Self;
}Expand description
The scalar type of every container and factorization of the crate.
Implemented for f64; xingo-extprec implements it for its extended
types (trilha L2). A total order is required (pivot search and pivot
tests), so intervals are not Real (D-0080, Q2). See the module
documentation for the requirements (R1)–(R4).
Required Associated Constants§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".