pub trait FloatMath: Sized {
// Required methods
fn abs(self) -> Self;
fn sin(self) -> Self;
fn cos(self) -> Self;
fn sqrt(self) -> Self;
fn ln(self) -> Self;
fn exp(self) -> Self;
fn atan2(self, x: Self) -> Self;
fn powf(self, n: Self) -> Self;
fn tanh(self) -> Self;
}Expand description
Floating-point math trait providing sin, cos, sqrt, ln, exp, atan2, powf, tanh, abs.
Required Methods§
fn abs(self) -> Self
fn sin(self) -> Self
fn cos(self) -> Self
fn sqrt(self) -> Self
fn ln(self) -> Self
fn exp(self) -> Self
fn atan2(self, x: Self) -> Self
fn powf(self, n: Self) -> Self
fn tanh(self) -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".