Skip to main content

OneOverPi

Trait OneOverPi 

Source
pub trait OneOverPi {
    const ONE_OVER_PI: Self;
}
Expand description

Provides $1/\pi$.

Required Associated Constants§

Source

const ONE_OVER_PI: Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl OneOverPi for f32

$1/\pi$.

Source§

const ONE_OVER_PI: f32 = core::f32::consts::FRAC_1_PI

Source§

impl OneOverPi for f64

$1/\pi$.

Source§

const ONE_OVER_PI: f64 = core::f64::consts::FRAC_1_PI

Implementors§