pub trait RealNumber: ScientificNumber + Float {
Show 18 methods
// Required methods
fn epsilon() -> Self;
fn exp(self) -> Self;
fn ln(self) -> Self;
fn log10(self) -> Self;
fn log2(self) -> Self;
fn sin(self) -> Self;
fn cos(self) -> Self;
fn tan(self) -> Self;
fn sinh(self) -> Self;
fn cosh(self) -> Self;
fn tanh(self) -> Self;
fn asin(self) -> Self;
fn acos(self) -> Self;
fn atan(self) -> Self;
fn atan2(self, other: Self) -> Self;
fn powf(self, n: Self) -> Self;
fn powi(self, n: i32) -> Self;
fn factorial(self) -> Self;
}Expand description
A trait for real-valued floating point types
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".