pub trait Sleef: Sized {
type Int;
Show 51 methods
// Required methods
fn sin(self) -> Self;
fn cos(self) -> Self;
fn sin_cos(self) -> (Self, Self);
fn tan(self) -> Self;
fn asin(self) -> Self;
fn acos(self) -> Self;
fn atan(self) -> Self;
fn atan2(self, other: Self) -> Self;
fn ln(self) -> Self;
fn cbrt(self) -> Self;
fn exp(self) -> Self;
fn pow(self, other: Self) -> Self;
fn sinh(self) -> Self;
fn cosh(self) -> Self;
fn tanh(self) -> Self;
fn asinh(self) -> Self;
fn acosh(self) -> Self;
fn atanh(self) -> Self;
fn exp2(self) -> Self;
fn exp10(self) -> Self;
fn exp_m1(self) -> Self;
fn log10(self) -> Self;
fn log2(self) -> Self;
fn log_1p(self) -> Self;
fn ldexp(self, other: Self::Int) -> Self;
fn ilogb(self) -> Self::Int;
fn fma(self, y: Self, z: Self) -> Self;
fn sqrt(self) -> Self;
fn abs(self) -> Self;
fn copy_sign(self, other: Self) -> Self;
fn max(self, other: Self) -> Self;
fn min(self, other: Self) -> Self;
fn fdim(self, other: Self) -> Self;
fn truncate(self) -> Self;
fn floor(self) -> Self;
fn ceil(self) -> Self;
fn round(self) -> Self;
fn next_after(self, other: Self) -> Self;
fn frfrexp(self) -> Self;
fn expfrexp(self) -> Self::Int;
fn fmod(self, other: Self) -> Self;
fn remainder(self, other: Self) -> Self;
fn modf(self) -> (Self, Self);
fn sin_cos_pi(self) -> (Self, Self);
fn sin_pi(self) -> Self;
fn cos_pi(self) -> Self;
fn hypot(self, other: Self) -> Self;
fn gamma(self) -> Self;
fn lgamma(self) -> Self;
fn erf(self) -> Self;
fn erfc(self) -> Self;
}Expand description
Generic trait for floating point & SIMD numbers
Required Associated Types§
Required Methods§
Sourcefn next_after(self, other: Self) -> Self
fn next_after(self, other: Self) -> Self
Find the next representable FP value
Sourcefn sin_cos_pi(self) -> (Self, Self)
fn sin_cos_pi(self) -> (Self, Self)
Evaluate sin( πa ) and cos( πa ) for given a simultaneously
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.