pub unsafe trait StdFloat: StdFloat + Float {
Show 36 methods
// Required methods
fn div_euclid(self, rhs: Self) -> Self;
fn rem_euclid(self, rhs: Self) -> Self;
fn mul_add(self, a: Self, b: Self) -> Self;
fn powf(self, exp: Self) -> Self;
fn powi(self, exp: i32) -> Self;
fn exp(self) -> Self;
fn exp_m1(self) -> Self;
fn exp2(self) -> Self;
fn sqrt(self) -> Self;
fn cbrt(self) -> Self;
fn log(self, base: Self) -> Self;
fn ln(self) -> Self;
fn ln_1p(self) -> Self;
fn log2(self) -> Self;
fn log10(self) -> Self;
fn hypot(self, rhs: Self) -> Self;
fn sin(self) -> Self;
fn cos(self) -> Self;
fn tan(self) -> Self;
fn sin_cos(self) -> (Self, Self);
fn asin(self) -> Self;
fn acos(self) -> Self;
fn atan(self) -> Self;
fn atan2(self, rhs: 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 round(self) -> Self;
fn round_ties_even(self) -> Self;
fn floor(self) -> Self;
fn ceil(self) -> Self;
fn trunc(self) -> Self;
fn fract(self) -> Self;
}Available on crate feature
std only.Expand description
Required Methods§
Sourcefn div_euclid(self, rhs: Self) -> Self
fn div_euclid(self, rhs: Self) -> Self
See f64::div_euclid.
Sourcefn rem_euclid(self, rhs: Self) -> Self
fn rem_euclid(self, rhs: Self) -> Self
See f64::rem_euclid.
Sourcefn round_ties_even(self) -> Self
fn round_ties_even(self) -> Self
See f64::round_ties_even.
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.
Implementations on Foreign Types§
Source§impl StdFloat for f16
Available on crate feature f16 only.
impl StdFloat for f16
Available on crate feature
f16 only.fn div_euclid(self, rhs: Self) -> Self
fn rem_euclid(self, rhs: Self) -> Self
fn mul_add(self, a: Self, b: Self) -> Self
fn powf(self, exp: Self) -> Self
fn powi(self, exp: i32) -> Self
fn exp(self) -> Self
fn exp_m1(self) -> Self
fn exp2(self) -> Self
fn sqrt(self) -> Self
fn cbrt(self) -> Self
fn log(self, base: Self) -> Self
fn ln(self) -> Self
fn ln_1p(self) -> Self
fn log2(self) -> Self
fn log10(self) -> Self
fn hypot(self, rhs: Self) -> Self
fn sin(self) -> Self
fn cos(self) -> Self
fn tan(self) -> Self
fn sin_cos(self) -> (Self, Self)
fn asin(self) -> Self
fn acos(self) -> Self
fn atan(self) -> Self
fn atan2(self, rhs: 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 round(self) -> Self
fn round_ties_even(self) -> Self
fn floor(self) -> Self
fn ceil(self) -> Self
fn trunc(self) -> Self
fn fract(self) -> Self
Source§impl StdFloat for f32
impl StdFloat for f32
fn div_euclid(self, rhs: Self) -> Self
fn rem_euclid(self, rhs: Self) -> Self
fn mul_add(self, a: Self, b: Self) -> Self
fn powf(self, exp: Self) -> Self
fn powi(self, exp: i32) -> Self
fn exp(self) -> Self
fn exp_m1(self) -> Self
fn exp2(self) -> Self
fn sqrt(self) -> Self
fn cbrt(self) -> Self
fn log(self, base: Self) -> Self
fn ln(self) -> Self
fn ln_1p(self) -> Self
fn log2(self) -> Self
fn log10(self) -> Self
fn hypot(self, rhs: Self) -> Self
fn sin(self) -> Self
fn cos(self) -> Self
fn tan(self) -> Self
fn sin_cos(self) -> (Self, Self)
fn asin(self) -> Self
fn acos(self) -> Self
fn atan(self) -> Self
fn atan2(self, rhs: 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 round(self) -> Self
fn round_ties_even(self) -> Self
fn floor(self) -> Self
fn ceil(self) -> Self
fn trunc(self) -> Self
fn fract(self) -> Self
Source§impl StdFloat for f64
impl StdFloat for f64
fn div_euclid(self, rhs: Self) -> Self
fn rem_euclid(self, rhs: Self) -> Self
fn mul_add(self, a: Self, b: Self) -> Self
fn powf(self, exp: Self) -> Self
fn powi(self, exp: i32) -> Self
fn exp(self) -> Self
fn exp_m1(self) -> Self
fn exp2(self) -> Self
fn sqrt(self) -> Self
fn cbrt(self) -> Self
fn log(self, base: Self) -> Self
fn ln(self) -> Self
fn ln_1p(self) -> Self
fn log2(self) -> Self
fn log10(self) -> Self
fn hypot(self, rhs: Self) -> Self
fn sin(self) -> Self
fn cos(self) -> Self
fn tan(self) -> Self
fn sin_cos(self) -> (Self, Self)
fn asin(self) -> Self
fn acos(self) -> Self
fn atan(self) -> Self
fn atan2(self, rhs: 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 round(self) -> Self
fn round_ties_even(self) -> Self
fn floor(self) -> Self
fn ceil(self) -> Self
fn trunc(self) -> Self
fn fract(self) -> Self
Source§impl StdFloat for f128
Available on crate feature f128 only.
impl StdFloat for f128
Available on crate feature
f128 only.