pub trait FloatConst {
Show 19 methods
// Required methods
fn E() -> Self;
fn FRAC_1_PI() -> Self;
fn FRAC_1_SQRT_2() -> Self;
fn FRAC_2_PI() -> Self;
fn FRAC_2_SQRT_PI() -> Self;
fn FRAC_PI_2() -> Self;
fn FRAC_PI_3() -> Self;
fn FRAC_PI_4() -> Self;
fn FRAC_PI_6() -> Self;
fn FRAC_PI_8() -> Self;
fn LN_10() -> Self;
fn LN_2() -> Self;
fn LOG10_E() -> Self;
fn LOG2_E() -> Self;
fn PI() -> Self;
fn SQRT_2() -> Self;
// Provided methods
fn TAU() -> Self
where Self: Sized + Add<Output = Self> { ... }
fn LOG10_2() -> Self
where Self: Sized + Div<Output = Self> { ... }
fn LOG2_10() -> Self
where Self: Sized + Div<Output = Self> { ... }
}
Required Methods§
Sourcefn FRAC_1_SQRT_2() -> Self
fn FRAC_1_SQRT_2() -> Self
Return 1.0 / sqrt(2.0)
.
Sourcefn FRAC_2_SQRT_PI() -> Self
fn FRAC_2_SQRT_PI() -> Self
Return 2.0 / sqrt(π)
.
Provided Methods§
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.