Skip to main content

Pi

Trait Pi 

Source
pub trait Pi {
    const PI: Self;
}
Expand description

Provides $\pi$.

Required Associated Constants§

Source

const PI: 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 Pi for f32

$\pi$.

Source§

const PI: f32 = core::f32::consts::PI

Source§

impl Pi for f64

$\pi$.

Source§

const PI: f64 = core::f64::consts::PI

Implementors§