pub trait GaussConstant {
const GAUSS_CONSTANT: Self;
}Expand description
Provides Gauss’s constant, $G=1/\mathrm{AGM}(1,\sqrt{2})$.
Having three consecutive esses in an identifier is awkward, so let’s pretend that we sometimes use AP Style and write “Gauss’ constant”.
Required Associated Constants§
const GAUSS_CONSTANT: 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.
Implementations on Foreign Types§
Source§impl GaussConstant for f32
$G=1/\mathrm{AGM}(1,\sqrt{2})$.
impl GaussConstant for f32
$G=1/\mathrm{AGM}(1,\sqrt{2})$.
const GAUSS_CONSTANT: f32 = 0.83462685
Source§impl GaussConstant for f64
$G=1/\mathrm{AGM}(1,\sqrt{2})$.
impl GaussConstant for f64
$G=1/\mathrm{AGM}(1,\sqrt{2})$.