pub trait FloatScalar: Scalar {
// Required methods
fn infinity() -> Self;
fn tsqrt(self) -> Self;
fn tsin(self) -> Self;
fn tcos(self) -> Self;
fn ttan(self) -> Self;
fn tacos(self) -> Self;
}
Expand description
Trait for floating-point scalars with transcendental functions.
Extends the base Scalar
trait with operations specific to
floating-point numbers, including trigonometric functions and
square root.
§Implementation Note
These functions link to external C math libraries (libm on Unix, MSVCRT on Windows) since they’re not available in no_std Rust.
Required Methods§
fn infinity() -> Self
fn tsqrt(self) -> Self
fn tsin(self) -> Self
fn tcos(self) -> Self
fn ttan(self) -> Self
fn tacos(self) -> Self
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.