pub trait Transcendental: Scalar {
const PI: Self;
Show 13 methods
// Required methods
fn to_f32(self) -> f32;
fn from_f32(value: f32) -> Self;
fn sqrt(self) -> Self;
fn exp(self) -> Self;
fn ln(self) -> Self;
fn sin(self) -> Self;
fn cos(self) -> Self;
fn tan(self) -> Self;
fn signum(self) -> Self;
fn random() -> Self;
// Provided methods
fn to_f64(self) -> f64 { ... }
fn from_f64(value: f64) -> Self { ... }
fn tanh(self) -> Self { ... }
}Expand description
Transcendental operations (sin, cos, sqrt, exp, ln).
Extends Scalar with functions available only for floating-point
types (f32, f64).
Required Associated Constants§
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".